- SW: Remove duplicated code from dd832aaea3f688b375c74643606f299c76d92f3b.

This commit is contained in:
Mitchell Richters 2020-08-28 12:34:34 +10:00 committed by Christoph Oelckers
parent c555540e24
commit 26ffc82cc0

View file

@ -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);