]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_ccmds.c
Actually fix color not being applied correctly
[xonotic/darkplaces.git] / sv_ccmds.c
index e4b201b2033c60d4a383a472c5b145851032d2a6..015839f4943c6934728055961dacbe20a0f7f0ec 100644 (file)
@@ -1095,6 +1095,9 @@ static void SV_Color_f(cmd_state_t *cmd)
        top = atoi(Cmd_Argv(cmd, 1));
        bottom = atoi(Cmd_Argv(cmd, 2));
 
+       top &= 15;
+       bottom &= 15;
+
        playercolor = top*16 + bottom;
 
        if (host_client->edict && PRVM_serverfunction(SV_ChangeTeam))