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:
parent
18fda226f6
commit
0e74b8f536
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue