mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
eliminate Cmd_ForwardToServer from cmd.c. Cmd_ForwardToServer still needs to
be removed from cmd.h, but that can wait a bit.
This commit is contained in:
parent
ad9142ff3c
commit
4162243287
3 changed files with 6 additions and 15 deletions
|
@ -50,8 +50,6 @@
|
|||
#include "QF/sys.h"
|
||||
#include "QF/zone.h"
|
||||
|
||||
void Cmd_ForwardToServer (void);
|
||||
|
||||
#define MAX_ALIAS_NAME 32
|
||||
|
||||
typedef struct cmdalias_s {
|
||||
|
@ -756,9 +754,7 @@ Cmd_ExecuteString (char *text, cmd_source_t src)
|
|||
// check functions
|
||||
cmd = (cmd_function_t*)Hash_Find (cmd_hash, cmd_argv[0]);
|
||||
if (cmd) {
|
||||
if (!cmd->function)
|
||||
Cmd_ForwardToServer ();
|
||||
else
|
||||
if (cmd->function)
|
||||
cmd->function ();
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -1182,11 +1182,11 @@ CL_Init (void)
|
|||
//
|
||||
// forward to server commands
|
||||
//
|
||||
Cmd_AddCommand ("kill", NULL, "Suicide :)");
|
||||
Cmd_AddCommand ("pause", NULL, "Pause the game");
|
||||
Cmd_AddCommand ("say", NULL, "Say something to all other players");
|
||||
Cmd_AddCommand ("say_team", NULL, "Say something only to people on your team");
|
||||
Cmd_AddCommand ("serverinfo", NULL, "Report the current server info");
|
||||
Cmd_AddCommand ("kill", Cmd_ForwardToServer, "Suicide :)");
|
||||
Cmd_AddCommand ("pause", Cmd_ForwardToServer, "Pause the game");
|
||||
Cmd_AddCommand ("say", Cmd_ForwardToServer, "Say something to all other players");
|
||||
Cmd_AddCommand ("say_team", Cmd_ForwardToServer, "Say something only to people on your team");
|
||||
Cmd_AddCommand ("serverinfo", Cmd_ForwardToServer, "Report the current server info");
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -43,8 +43,3 @@ void
|
|||
Draw_EndDisc (void)
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
Cmd_ForwardToServer (void)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue