Convert Combat.DoExplosion to world coords.

This commit is contained in:
Paul Chote
2013-07-06 20:26:09 +12:00
parent 0fdffd7b6a
commit 7883b1bd7f
7 changed files with 13 additions and 15 deletions

View File

@@ -42,11 +42,7 @@ namespace OpenRA.Mods.RA
var weapon = ChooseWeaponForExplosion(self);
if (weapon != null)
{
var move = self.TraitOrDefault<IMove>();
var altitude = move != null ? move.Altitude : 0;
Combat.DoExplosion(e.Attacker, weapon, self.CenterLocation, altitude);
}
Combat.DoExplosion(e.Attacker, weapon, self.CenterPosition);
}
string ChooseWeaponForExplosion(Actor self)