Target uses int2.

This commit is contained in:
Paul Chote
2011-01-01 13:29:05 +13:00
parent 60e3f7621f
commit 9f38df013e
4 changed files with 8 additions and 8 deletions

View File

@@ -112,12 +112,12 @@ namespace OpenRA.Mods.RA
}
}
public static void DoExplosion(Actor attacker, string weapontype, float2 pos, int altitude)
public static void DoExplosion(Actor attacker, string weapontype, int2 pos, int altitude)
{
var args = new ProjectileArgs
{
src = pos.ToInt2(),
dest = pos.ToInt2(),
src = pos,
dest = pos,
srcAltitude = altitude,
destAltitude = altitude,
firedBy = attacker,

View File

@@ -20,7 +20,7 @@ namespace OpenRA.Mods.RA.Effects
readonly Player firedBy;
readonly Actor silo;
Animation anim;
float2 pos;
int2 pos;
int2 targetLocation;
int altitude;
bool goingUp = true;

View File

@@ -48,7 +48,7 @@ namespace OpenRA.Mods.RA
WaitForIdle();
}
protected void DefendThis(float2 target)
protected void DefendThis(int2 target)
{
DefendTarget = Target.FromPos(target);
TargetType = ETargetType.Location;