]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix a stupid bug with the runes display on the hud (it was detecting rogue/hipnotic...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 11 Oct 2005 10:06:10 +0000 (10:06 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 11 Oct 2005 10:06:10 +0000 (10:06 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5735 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index 98e8860d37056892b10fc6919fbdfb9b2547694d..cf61df4cb89305dafeb8a9a7e4646693eab0c22f 100644 (file)
--- 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);