Replaced Knghtbrd's command fix for UQ, added more for completeness.

This commit is contained in:
Jeff Teunissen 2000-02-03 11:14:57 +00:00
parent cdee91b71f
commit 18fc5af9e9

View file

@ -628,23 +628,20 @@ void Cmd_ForwardToServer (void)
if (cls.demoplayback)
return; // not really connected
#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
#ifdef QUAKEWORLD
MSG_WriteByte (&cls.netchan.message, clc_stringcmd);
SZ_Print (&cls.netchan.message, Cmd_Argv(0));
if (Cmd_Argc() > 1)
{
if (Cmd_Argc() > 1) {
SZ_Print (&cls.netchan.message, " ");
SZ_Print (&cls.netchan.message, Cmd_Args());
}
#elif 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());
}
#endif
}
@ -665,11 +662,13 @@ void Cmd_ForwardToServer_f (void)
if (cls.demoplayback)
return; // not really connected
if (Cmd_Argc() > 1)
{
if (Cmd_Argc() > 1) {
#ifdef QUAKEWORLD
MSG_WriteByte (&cls.netchan.message, clc_stringcmd);
SZ_Print (&cls.netchan.message, Cmd_Args());
#elif UQUAKE
MSG_WriteByte (&cls.message, clc_stringcmd);
SZ_Print (&cls.message, Cmd_Args());
#endif
}
}