From ce866fba439c8d4df9d4f0cc9f9fb8d1e5937351 Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 14 Oct 2011 09:52:32 +0000 Subject: [PATCH] use PRVM_serverfunction when looking up SV_ChangeTeam, not PRVM_clientfunction (harmless but stupid) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11407 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 9a37055e..b60af216 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -1578,13 +1578,13 @@ void Host_Color(int changetop, int changebottom) if (cls.protocol == PROTOCOL_QUAKEWORLD) return; - if (host_client->edict && PRVM_clientfunction(SV_ChangeTeam)) + if (host_client->edict && PRVM_serverfunction(SV_ChangeTeam)) { Con_DPrint("Calling SV_ChangeTeam\n"); PRVM_serverglobalfloat(time) = sv.time; prog->globals.generic[OFS_PARM0] = playercolor; PRVM_serverglobaledict(self) = PRVM_EDICT_TO_PROG(host_client->edict); - PRVM_ExecuteProgram(PRVM_clientfunction(SV_ChangeTeam), "QC function SV_ChangeTeam is missing"); + PRVM_ExecuteProgram(PRVM_serverfunction(SV_ChangeTeam), "QC function SV_ChangeTeam is missing"); } else { -- 2.39.2