Bug 856- Removal of extra few lines of code

This commit is contained in:
Lawrence Wang
2011-06-04 22:49:21 -07:00
committed by Chris Forbes
parent de5db51f25
commit 1fa4cf5c0a

View File

@@ -26,13 +26,11 @@ namespace OpenRA.Mods.RA
{ {
[Sync] [Sync]
int ammo; int ammo;
int ticksPerAmmo;
LimitedAmmoInfo Info; LimitedAmmoInfo Info;
public LimitedAmmo(LimitedAmmoInfo info) public LimitedAmmo(LimitedAmmoInfo info)
{ {
ammo = info.Ammo; ammo = info.Ammo;
ticksPerAmmo = info.ReloadTicks;
Info = info; Info = info;
} }
@@ -45,7 +43,7 @@ namespace OpenRA.Mods.RA
return true; return true;
} }
public int ReloadTimePerAmmo() { return ticksPerAmmo; } public int ReloadTimePerAmmo() { return Info.ReloadTicks; }
public void Attacking(Actor self, Target target) { --ammo; } public void Attacking(Actor self, Target target) { --ammo; }