From: cloudwalk Date: Tue, 6 Oct 2020 14:10:23 +0000 (+0000) Subject: mvm_cmds: Remove duplicate clientcommand builtin invalidly used by the menu X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3ee3928f37562370c855863fdc660064ceabf602;p=xonotic%2Fdarkplaces.git mvm_cmds: Remove duplicate clientcommand builtin invalidly used by the menu git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12999 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/mvm_cmds.c b/mvm_cmds.c index a8fdbb6e..a2b75667 100644 --- a/mvm_cmds.c +++ b/mvm_cmds.c @@ -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 diff --git a/prvm_cmds.c b/prvm_cmds.c index 66e97242..980aff25 100644 --- a/prvm_cmds.c +++ b/prvm_cmds.c @@ -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