summaryrefslogtreecommitdiff
path: root/src/game/g_syscalls.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/game/g_syscalls.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/game/g_syscalls.c')
-rw-r--r--src/game/g_syscalls.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game/g_syscalls.c b/src/game/g_syscalls.c
index 3a1cd26f..1ddc74f9 100644
--- a/src/game/g_syscalls.c
+++ b/src/game/g_syscalls.c
@@ -287,3 +287,13 @@ int trap_Parse_SourceFileAndLine( int handle, char *filename, int *line )
return syscall( G_PARSE_SOURCE_FILE_AND_LINE, handle, filename, line );
}
+void trap_AddCommand( const char *cmdName )
+{
+ syscall( G_ADDCOMMAND, cmdName );
+}
+
+void trap_RemoveCommand( const char *cmdName )
+{
+ syscall( G_REMOVECOMMAND, cmdName );
+}
+