From d3cbcdb8091d7f08cd8bd90095671b8caa770414 Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 16 Aug 2002 05:57:27 +0000 Subject: [PATCH] SV_ChangeTeam now actually gets called with the right value git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2251 d7cf8633-e32d-0410-b094-e92efae38249 --- host_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/host_cmd.c b/host_cmd.c index d4b1a659..7a6fd9b5 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -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, ""); } -- 2.39.2