From d039ef0efddc88277d50f1f89674ac3ff5685e58 Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 11 Oct 2005 10:06:10 +0000 Subject: [PATCH] fix a stupid bug with the runes display on the hud (it was detecting rogue/hipnotic hud's by the existence of the items2 field, which due to the DP progs loader always exists) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5735 d7cf8633-e32d-0410-b094-e92efae38249 --- sv_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sv_main.c b/sv_main.c index 98e8860d..cf61df4c 100644 --- a/sv_main.c +++ b/sv_main.c @@ -906,7 +906,7 @@ void SV_WriteClientdataToMessage (client_t *client, prvm_edict_t *ent, sizebuf_t // stuff the sigil bits into the high bits of items for sbar, or else // mix in items2 val = PRVM_GETEDICTFIELDVALUE(ent, eval_items2); - if (val) + if (gamemode == GAME_HIPNOTIC || gamemode == GAME_ROGUE) items = (int)ent->fields.server->items | ((int)val->_float << 23); else items = (int)ent->fields.server->items | ((int)prog->globals.server->serverflags << 28); -- 2.39.2