mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-16 01:11:28 +00:00
- SW: Remove duplicated code from dd832aaea3f688b375c74643606f299c76d92f3b.
This commit is contained in:
parent
c555540e24
commit
26ffc82cc0
1 changed files with 1 additions and 3 deletions
|
@ -825,19 +825,17 @@ private:
|
|||
}
|
||||
else
|
||||
{
|
||||
short clip;
|
||||
short capacity;
|
||||
switch (weapon)
|
||||
{
|
||||
case WPN_SHOTGUN:
|
||||
capacity = 4;
|
||||
clip = CalcMagazineAmount(ammo, capacity, DoReloadStatus(&pp->WpnReloadState, ammo % capacity));
|
||||
break;
|
||||
case WPN_UZI:
|
||||
capacity = pp->WpnUziType ? 50 : 100;
|
||||
clip = CalcMagazineAmount(ammo, capacity, DoReloadStatus(&pp->WpnReloadState, ammo % capacity));
|
||||
break;
|
||||
}
|
||||
short clip = CalcMagazineAmount(ammo, capacity, DoReloadStatus(&pp->WpnReloadState, ammo % capacity));
|
||||
format.Format("%d/%d", clip, ammo - clip);
|
||||
}
|
||||
img = tileGetTexture(wicon);
|
||||
|
|
Loading…
Reference in a new issue