From cf1234d63e48d4124bd9bd03ebb91b314f409e10 Mon Sep 17 00:00:00 2001 From: "M. Kristall" Date: Wed, 28 Oct 2009 19:22:57 +0000 Subject: * Server- and client-side tab completion for commands handled by the game module * Admin commands are just like all other commands now: no more ! ("!map" was renamed to "changemap" since "map" already exists) * Text in the chat ui beginning with / or \ is treated as a command unless ui_chatCommands = 0 (default 1) --- src/server/sv_game.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/server') diff --git a/src/server/sv_game.c b/src/server/sv_game.c index 2db7ee3f..95c2ba95 100644 --- a/src/server/sv_game.c +++ b/src/server/sv_game.c @@ -443,6 +443,13 @@ intptr_t SV_GameSystemCalls( intptr_t *args ) { case G_PARSE_SOURCE_FILE_AND_LINE: return Parse_SourceFileAndLine( args[1], VMA(2), VMA(3) ); + case G_ADDCOMMAND: + Cmd_AddCommand( VMA(1), NULL ); + return 0; + case G_REMOVECOMMAND: + Cmd_RemoveCommand( VMA(1) ); + return 0; + case TRAP_MEMSET: Com_Memset( VMA(1), args[2], args[3] ); return 0; -- cgit