//===========================================================================
// Disable cheats if sv_cheats is turned off
-static void SV_DisableCheats_c(char *value)
+static void SV_DisableCheats_c(cvar_t *var)
{
prvm_prog_t *prog = SVVM_prog;
int i = 0;
- if (value[0] == '0' && !value[1])
+ if (var->value == 0)
{
while (svs.clients[i].edict)
{
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))