]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
SV_ChangeTeam now actually gets called with the right value
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 16 Aug 2002 05:57:27 +0000 (05:57 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 16 Aug 2002 05:57:27 +0000 (05:57 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2251 d7cf8633-e32d-0410-b094-e92efae38249

host_cmd.c

index d4b1a659eb435a630038bf056e24da20b7c39746..7a6fd9b5a26d5b9de8a7cad28570cc317152ebf4 100644 (file)
@@ -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, "");
        }