Change spacebar key to move to the last visible radar ping location

This commit is contained in:
ScottNZ
2014-02-21 22:11:43 +13:00
parent 06caf7f156
commit 0a9a959ecf
4 changed files with 13 additions and 15 deletions

View File

@@ -28,8 +28,7 @@ namespace OpenRA.Mods.RA
readonly RadarPings radarPings;
readonly BaseAttackNotifierInfo info;
public int lastAttackTime;
public CPos lastAttackLocation;
int lastAttackTime;
public BaseAttackNotifier(Actor self, BaseAttackNotifierInfo info)
{
@@ -61,7 +60,6 @@ namespace OpenRA.Mods.RA
radarPings.Add(() => self.Owner == self.World.LocalPlayer, self.CenterPosition, info.RadarPingColor, info.RadarPingDuration);
}
lastAttackLocation = self.CenterPosition.ToCPos();
lastAttackTime = self.World.FrameNumber;
}
}

View File

@@ -27,8 +27,7 @@ namespace OpenRA.Mods.RA
readonly RadarPings radarPings;
readonly HarvesterAttackNotifierInfo info;
public int lastAttackTime;
public CPos lastAttackLocation;
int lastAttackTime;
public HarvesterAttackNotifier(Actor self, HarvesterAttackNotifierInfo info)
{
@@ -55,7 +54,6 @@ namespace OpenRA.Mods.RA
radarPings.Add(() => self.Owner == self.World.LocalPlayer, self.CenterPosition, info.RadarPingColor, info.RadarPingDuration);
}
lastAttackLocation = self.CenterPosition.ToCPos();
lastAttackTime = self.World.FrameNumber;
}
}