mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-26 05:40:49 +00:00
Replaced Knghtbrd's command fix for UQ, added more for completeness.
This commit is contained in:
parent
cdee91b71f
commit
18fc5af9e9
1 changed files with 13 additions and 14 deletions
27
common/cmd.c
27
common/cmd.c
|
@ -628,23 +628,20 @@ void Cmd_ForwardToServer (void)
|
||||||
if (cls.demoplayback)
|
if (cls.demoplayback)
|
||||||
return; // not really connected
|
return; // not really connected
|
||||||
|
|
||||||
#ifdef UQUAKE
|
#ifdef QUAKEWORLD
|
||||||
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);
|
MSG_WriteByte (&cls.netchan.message, clc_stringcmd);
|
||||||
SZ_Print (&cls.netchan.message, Cmd_Argv(0));
|
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, " ");
|
||||||
SZ_Print (&cls.netchan.message, Cmd_Args());
|
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
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -665,11 +662,13 @@ void Cmd_ForwardToServer_f (void)
|
||||||
if (cls.demoplayback)
|
if (cls.demoplayback)
|
||||||
return; // not really connected
|
return; // not really connected
|
||||||
|
|
||||||
if (Cmd_Argc() > 1)
|
if (Cmd_Argc() > 1) {
|
||||||
{
|
|
||||||
#ifdef QUAKEWORLD
|
#ifdef QUAKEWORLD
|
||||||
MSG_WriteByte (&cls.netchan.message, clc_stringcmd);
|
MSG_WriteByte (&cls.netchan.message, clc_stringcmd);
|
||||||
SZ_Print (&cls.netchan.message, Cmd_Args());
|
SZ_Print (&cls.netchan.message, Cmd_Args());
|
||||||
|
#elif UQUAKE
|
||||||
|
MSG_WriteByte (&cls.message, clc_stringcmd);
|
||||||
|
SZ_Print (&cls.message, Cmd_Args());
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue