never spawn parachutes outside the map

fixes #6302
This commit is contained in:
Matthias Mailänder
2014-08-24 14:07:18 +02:00
parent f0e6eee7e1
commit 3f66d310db
2 changed files with 4 additions and 1 deletions

View File

@@ -33,7 +33,7 @@ namespace OpenRA.Mods.RA
{
public void Killed(Actor self, AttackInfo e)
{
if (self.Owner.WinState == WinState.Lost)
if (self.Owner.WinState == WinState.Lost || !self.World.Map.Contains(self.Location))
return;
var r = self.World.SharedRandom.Next(1, 100);