diff options
author | M. Kristall <mkpdev@gmail.com> | 2009-10-28 19:22:57 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:17:11 +0000 |
commit | cf1234d63e48d4124bd9bd03ebb91b314f409e10 (patch) | |
tree | b39f298cee431bcaafc9858a9897463a30d4679d /src/server/sv_game.c | |
parent | e3cfb28d459a57050a764e8048626497f4553b4d (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.c | 7 |
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; |