]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host_cmd.c
no more warping meshs of any kind
[xonotic/darkplaces.git] / host_cmd.c
index d4b1a659eb435a630038bf056e24da20b7c39746..507188bf2d4f0c8fc78746b941af2def076c84e3 100644 (file)
@@ -847,11 +847,11 @@ void Host_Color_f(void)
        int             playercolor;
        dfunction_t *f;
        func_t  SV_ChangeTeam;
-       
+
        if (Cmd_Argc() == 1)
        {
                Con_Printf ("\"color\" is \"%i %i\"\n", cl_color.integer >> 4, cl_color.integer & 15);
-               Con_Printf ("color <0-13> [0-13]\n");
+               Con_Printf ("color <0-15> [0-15]\n");
                return;
        }
 
@@ -871,7 +871,7 @@ void Host_Color_f(void)
        // LordHavoc: allow skin colormaps 14 and 15 (was 13)
        if (bottom > 15)
                bottom = 15;
-       
+
        playercolor = top*16 + bottom;
 
        if (cmd_source == src_command)
@@ -886,7 +886,7 @@ void Host_Color_f(void)
        {
                Con_DPrintf("Calling SV_ChangeTeam\n");
                pr_global_struct->time = sv.time;
-               pr_globals[0] = playercolor;
+               pr_globals[OFS_PARM0] = playercolor;
                pr_global_struct->self = EDICT_TO_PROG(host_client->edict);
                PR_ExecuteProgram (SV_ChangeTeam, "");
        }