Properly handle svc_maxammo for MAX AMMO! HUD Text

This commit is contained in:
Steam Deck User 2022-12-28 14:36:46 -05:00
parent 0eec42ed8c
commit df0cb3bbea

View file

@ -21,6 +21,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "quakedef.h"
extern qboolean domaxammo;
char *svc_strings[] =
{
"svc_bad",
@ -1104,6 +1106,10 @@ void CL_ParseServerMessage (void)
case svc_useprint:
SCR_UsePrint (MSG_ReadByte (),MSG_ReadShort (),MSG_ReadByte ());
break;
case svc_maxammo:
domaxammo = true;
break;
case svc_stufftext:
Cbuf_AddText (MSG_ReadString ());