]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
mvm_cmds: Remove duplicate clientcommand builtin invalidly used by the menu
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 6 Oct 2020 14:10:23 +0000 (14:10 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 6 Oct 2020 14:10:23 +0000 (14:10 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12999 d7cf8633-e32d-0410-b094-e92efae38249

mvm_cmds.c
prvm_cmds.c

index a8fdbb6eb84905f9a24a05d87d5dab322ef02b9a..a2b756671e7d4d9cf5fe0b9b0750e7bf0df95303 100644 (file)
@@ -996,7 +996,7 @@ VM_argv,                                                            //  #59
 VM_isserver,                                           //  #60
 VM_clientcount,                                        //  #61
 VM_clientstate,                                        //  #62
-VM_clcommand,                                          //  #63
+NULL,                                          //  #63 FIXME
 VM_changelevel,                                        //  #64
 VM_localsound,                                         //  #65
 VM_M_getmousepos,                                      //  #66
index 66e972423d9b46c0172493c5f661a3791a7d525f..980aff25d43eeb85e38443ced5feb1c6c0791819 100644 (file)
@@ -2556,36 +2556,6 @@ void VM_strunzone(prvm_prog_t *prog)
        PRVM_FreeString(prog, PRVM_G_INT(OFS_PARM0));
 }
 
-/*
-=========
-VM_command (used by client and menu)
-
-clientcommand(float client, string s) (for client and menu)
-=========
-*/
-//void(entity e, string s) clientcommand = #440; // executes a command string as if it came from the specified client
-//this function originally written by KrimZon, made shorter by LadyHavoc
-void VM_clcommand (prvm_prog_t *prog)
-{
-       client_t *temp_client;
-       int i;
-
-       VM_SAFEPARMCOUNT(2,VM_clcommand);
-
-       i = (int)PRVM_G_FLOAT(OFS_PARM0);
-       if (!sv.active  || i < 0 || i >= svs.maxclients || !svs.clients[i].active)
-       {
-               VM_Warning(prog, "VM_clientcommand: %s: invalid client/server is not active !\n", prog->name);
-               return;
-       }
-
-       temp_client = host_client;
-       host_client = svs.clients + i;
-       Cmd_ExecuteString (&cmd_serverfromclient, PRVM_G_STRING(OFS_PARM1), src_client, true);
-       host_client = temp_client;
-}
-
-
 /*
 =========
 VM_tokenize