]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
use PRVM_serverfunction when looking up SV_ChangeTeam,
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 14 Oct 2011 09:52:32 +0000 (09:52 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 14 Oct 2011 09:52:32 +0000 (09:52 +0000)
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

index 9a37055ed931a24dd1a58e680dfe7ecf31b606ba..b60af2164b63410b49f7641ca28c429cb13f98da 100644 (file)
@@ -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
        {