Client: Include the ammo notification routines.

This commit is contained in:
Marco Cawthorne 2021-12-16 17:20:01 -08:00
parent ebdc8e07c0
commit a802c18a16
Signed by: eukara
GPG key ID: C196CD8BA993248A
2 changed files with 5 additions and 1 deletions

View file

@ -32,6 +32,7 @@ init.qc
../../../valve/src/client/viewmodel.qc
../../../valve/src/client/view.qc
../../../valve/src/client/obituary.qc
../../../valve/src/client/hud_ammonotify.qc
../../../valve/src/client/hud.qc
hud_weaponselect.qc
../../../valve/src/client/scoreboard.qc

View file

@ -119,6 +119,7 @@ class player:base_player
#ifdef CLIENT
void Weapons_AmmoUpdate(entity);
void HUD_AmmoNotify_Check(player pl);
/*
=================
player::ReceiveEntity
@ -191,8 +192,10 @@ player::ReceiveEntity(float new, float fl)
mode_m249 = readbyte();
}
if (fl & PLAYER_AMMO1 || fl & PLAYER_AMMO2 || fl & PLAYER_AMMO3)
if (fl & PLAYER_AMMO1 || fl & PLAYER_AMMO2 || fl & PLAYER_AMMO3) {
Weapons_AmmoUpdate(this);
HUD_AmmoNotify_Check(this);
}
setorigin(this, origin);
}