mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-29 07:02:08 +00:00
Most of the commands in uquake/host_cmd.c are simply passed to the server
when you type them. This includes say, god, etc... They never got there however because Mercury forgot to add the uquake stuff to it. We _REALLY_ need to get cls.netchan backported to uquake!
This commit is contained in:
parent
51676c32e7
commit
e9e147fe84
1 changed files with 17 additions and 8 deletions
25
common/cmd.c
25
common/cmd.c
|
@ -1,4 +1,5 @@
|
|||
/*
|
||||
cmd.c - Quake script command processing module
|
||||
Copyright (C) 1996-1997 Id Software, Inc.
|
||||
Copyright (C) 1999,2000 contributors of the QuakeForge project
|
||||
Please see the file "AUTHORS" for a list of contributors
|
||||
|
@ -19,14 +20,13 @@ along with this program; if not, write to the Free Software
|
|||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
*/
|
||||
// cmd.c -- Quake script command processing module
|
||||
|
||||
#include "common.h"
|
||||
#include "cmd.h"
|
||||
#include "console.h"
|
||||
#include "cvar.h"
|
||||
#include "sys.h"
|
||||
#include "client.h"
|
||||
#include <common.h>
|
||||
#include <cmd.h>
|
||||
#include <console.h>
|
||||
#include <cvar.h>
|
||||
#include <sys.h>
|
||||
#include <client.h>
|
||||
#include <lib_replace.h>
|
||||
#include <zone.h>
|
||||
#include <string.h>
|
||||
|
@ -628,7 +628,16 @@ void Cmd_ForwardToServer (void)
|
|||
if (cls.demoplayback)
|
||||
return; // not really connected
|
||||
|
||||
#ifdef QUAKEWORLD
|
||||
#ifdef UQUAKE
|
||||
MSG_WriteByte (&cls.message, clc_stringcmd);
|
||||
SZ_Print (&cls.message, Cmd_Argv(0));
|
||||
if (Cmd_Argc() > 1)
|
||||
{
|
||||
SZ_Print (&cls.message, " ");
|
||||
SZ_Print (&cls.message, Cmd_Args());
|
||||
} else
|
||||
SZ_Print (&cls.message, "\n");
|
||||
#elif QUAKEWORLD
|
||||
MSG_WriteByte (&cls.netchan.message, clc_stringcmd);
|
||||
SZ_Print (&cls.netchan.message, Cmd_Argv(0));
|
||||
if (Cmd_Argc() > 1)
|
||||
|
|
Loading…
Reference in a new issue