Fixed #1090; pilots don't drop for dead players

This commit is contained in:
Curtis S
2011-07-31 22:26:25 -06:00
committed by Chris Forbes
parent 132ca5c667
commit b6560e6026

View File

@@ -32,7 +32,8 @@ namespace OpenRA.Mods.RA
var r = self.World.SharedRandom.Next(1, 100);
var aircraft = self.Trait<IMove>();
if (IsSuitableCell(pilot, self.Location) && r > 100 - info.SuccessRate && aircraft.Altitude > 10)
if (IsSuitableCell(pilot, self.Location) && r > 100 - info.SuccessRate && aircraft.Altitude > 10
&& self.Owner.WinState != WinState.Lost)
{
self.World.AddFrameEndTask(w => w.Add(
new Parachute(pilot.Owner,