Fixed #1090; pilots don't drop for dead players
This commit is contained in:
@@ -32,7 +32,8 @@ namespace OpenRA.Mods.RA
|
|||||||
var r = self.World.SharedRandom.Next(1, 100);
|
var r = self.World.SharedRandom.Next(1, 100);
|
||||||
var aircraft = self.Trait<IMove>();
|
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(
|
self.World.AddFrameEndTask(w => w.Add(
|
||||||
new Parachute(pilot.Owner,
|
new Parachute(pilot.Owner,
|
||||||
|
|||||||
Reference in New Issue
Block a user