Call weapon.updateammo() from now on after each primary/secondary/reload

function.
This commit is contained in:
Marco Cawthorne 2019-09-15 10:13:10 +02:00
parent aa5dac4e01
commit 609031080e

View file

@ -69,6 +69,11 @@ void Weapons_Primary(void)
if (g_weapons[i].primary != __NULL__) {
g_weapons[i].primary();
}
#ifdef SSQC
if (g_weapons[i].updateammo != __NULL__) {
g_weapons[i].updateammo(pl);
}
#endif
}
void Weapons_Secondary(void)
@ -78,6 +83,11 @@ void Weapons_Secondary(void)
if (g_weapons[i].secondary != __NULL__) {
g_weapons[i].secondary();
}
#ifdef SSQC
if (g_weapons[i].updateammo != __NULL__) {
g_weapons[i].updateammo(pl);
}
#endif
}
void Weapons_Reload(void)
@ -87,6 +97,11 @@ void Weapons_Reload(void)
if (g_weapons[i].reload != __NULL__) {
g_weapons[i].reload();
}
#ifdef SSQC
if (g_weapons[i].updateammo != __NULL__) {
g_weapons[i].updateammo(pl);
}
#endif
}
void Weapons_Release(void)