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:
Bill Currie 2001-03-31 00:35:08 +00:00
parent ad9142ff3c
commit 4162243287
3 changed files with 6 additions and 15 deletions

View file

@ -50,8 +50,6 @@
#include "QF/sys.h" #include "QF/sys.h"
#include "QF/zone.h" #include "QF/zone.h"
void Cmd_ForwardToServer (void);
#define MAX_ALIAS_NAME 32 #define MAX_ALIAS_NAME 32
typedef struct cmdalias_s { typedef struct cmdalias_s {
@ -756,9 +754,7 @@ Cmd_ExecuteString (char *text, cmd_source_t src)
// check functions // check functions
cmd = (cmd_function_t*)Hash_Find (cmd_hash, cmd_argv[0]); cmd = (cmd_function_t*)Hash_Find (cmd_hash, cmd_argv[0]);
if (cmd) { if (cmd) {
if (!cmd->function) if (cmd->function)
Cmd_ForwardToServer ();
else
cmd->function (); cmd->function ();
return; return;
} }

View file

@ -1182,11 +1182,11 @@ CL_Init (void)
// //
// forward to server commands // forward to server commands
// //
Cmd_AddCommand ("kill", NULL, "Suicide :)"); Cmd_AddCommand ("kill", Cmd_ForwardToServer, "Suicide :)");
Cmd_AddCommand ("pause", NULL, "Pause the game"); Cmd_AddCommand ("pause", Cmd_ForwardToServer, "Pause the game");
Cmd_AddCommand ("say", NULL, "Say something to all other players"); Cmd_AddCommand ("say", Cmd_ForwardToServer, "Say something to all other players");
Cmd_AddCommand ("say_team", NULL, "Say something only to people on your team"); Cmd_AddCommand ("say_team", Cmd_ForwardToServer, "Say something only to people on your team");
Cmd_AddCommand ("serverinfo", NULL, "Report the current server info"); Cmd_AddCommand ("serverinfo", Cmd_ForwardToServer, "Report the current server info");
} }

View file

@ -43,8 +43,3 @@ void
Draw_EndDisc (void) Draw_EndDisc (void)
{ {
} }
void
Cmd_ForwardToServer (void)
{
}