From e9e147fe84b6013111d2bc840d0a196f7f7137b7 Mon Sep 17 00:00:00 2001 From: Joseph Carter Date: Thu, 3 Feb 2000 10:51:06 +0000 Subject: [PATCH] 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! --- common/cmd.c | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/common/cmd.c b/common/cmd.c index c2f6fed..261c88e 100644 --- a/common/cmd.c +++ b/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 +#include +#include +#include +#include +#include #include #include #include @@ -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)