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]
int ammo;
int ticksPerAmmo;
LimitedAmmoInfo Info;
public LimitedAmmo(LimitedAmmoInfo info)
{
ammo = info.Ammo;
ticksPerAmmo = info.ReloadTicks;
Info = info;
}
@@ -45,7 +43,7 @@ namespace OpenRA.Mods.RA
return true;
}
public int ReloadTimePerAmmo() { return ticksPerAmmo; }
public int ReloadTimePerAmmo() { return Info.ReloadTicks; }
public void Attacking(Actor self, Target target) { --ammo; }