Wipe a_ammoX variables when switching to a new weapon, to make sure

they don't get carried over from another one.
This commit is contained in:
Marco Cawthorne 2019-09-17 02:59:27 +02:00
parent 18fda226f6
commit 0e74b8f536

View file

@ -43,6 +43,9 @@ void Weapons_Draw(void)
pl.w_idle_next = 2.5f;
pl.viewzoom = 1.0f;
/* make sure this is all wiped */
pl.a_ammo1 = pl.a_ammo2 = pl.a_ammo3 = 0;
if (g_weapons[i].draw != __NULL__) {
g_weapons[i].draw();
}