mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-15 20:20:54 +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
|
else
|
||||||
{
|
{
|
||||||
short clip;
|
|
||||||
short capacity;
|
short capacity;
|
||||||
switch (weapon)
|
switch (weapon)
|
||||||
{
|
{
|
||||||
case WPN_SHOTGUN:
|
case WPN_SHOTGUN:
|
||||||
capacity = 4;
|
capacity = 4;
|
||||||
clip = CalcMagazineAmount(ammo, capacity, DoReloadStatus(&pp->WpnReloadState, ammo % capacity));
|
|
||||||
break;
|
break;
|
||||||
case WPN_UZI:
|
case WPN_UZI:
|
||||||
capacity = pp->WpnUziType ? 50 : 100;
|
capacity = pp->WpnUziType ? 50 : 100;
|
||||||
clip = CalcMagazineAmount(ammo, capacity, DoReloadStatus(&pp->WpnReloadState, ammo % capacity));
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
short clip = CalcMagazineAmount(ammo, capacity, DoReloadStatus(&pp->WpnReloadState, ammo % capacity));
|
||||||
format.Format("%d/%d", clip, ammo - clip);
|
format.Format("%d/%d", clip, ammo - clip);
|
||||||
}
|
}
|
||||||
img = tileGetTexture(wicon);
|
img = tileGetTexture(wicon);
|
||||||
|
|
Loading…
Reference in a new issue