summaryrefslogtreecommitdiff
path: root/src/server/sv_game.c
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2009-10-28 19:22:57 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:17:11 +0000
commitcf1234d63e48d4124bd9bd03ebb91b314f409e10 (patch)
treeb39f298cee431bcaafc9858a9897463a30d4679d /src/server/sv_game.c
parente3cfb28d459a57050a764e8048626497f4553b4d (diff)
* 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)
Diffstat (limited to 'src/server/sv_game.c')
-rw-r--r--src/server/sv_game.c7
1 files changed, 7 insertions, 0 deletions
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;