undo ProjectileArgs stuff

This commit is contained in:
Chris Forbes
2010-07-22 18:59:41 +12:00
parent 6d527c3668
commit 31d5d18d65
7 changed files with 10 additions and 10 deletions

View File

@@ -113,16 +113,16 @@ namespace OpenRA.Mods.RA
}
}
public static void DoExplosion(Actor attacker, string weapontype, Target _target, int altitude)
public static void DoExplosion(Actor attacker, string weapontype, float2 pos, int altitude)
{
var args = new ProjectileArgs
{
src = Util.CellContaining(_target.CenterLocation),
dest = Util.CellContaining(_target.CenterLocation),
src = pos.ToInt2(),
dest = pos.ToInt2(),
srcAltitude = altitude,
destAltitude = altitude,
firedBy = attacker,
target = _target,
target = Target.FromPos(pos),
weapon = Rules.Weapons[ weapontype.ToLowerInvariant() ],
facing = 0
};