From a1e7a4bd0512f35571b1a480bb24b35e0fdb3363 Mon Sep 17 00:00:00 2001 From: Ben Millwood Date: Sat, 3 Oct 2009 12:11:39 +0000 Subject: * Remove extra trailing newline from admin chat commands (oops) * Rename private message, admin message functions for consistency * Cancel a reload when switching weapons, and prevent reloading a full clip * Simplify admin command formatting and in doing so prevent some compiler warnings on OS X * Fix some admin messages (s/kicked/banned/, no bans to show, can't perm ban) * Have tremulous_alien_common_hud include tremulous_common_hud since they're always used together anyway * Remove some redundant uses of va() --- src/ui/ui_atoms.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui') diff --git a/src/ui/ui_atoms.c b/src/ui/ui_atoms.c index 58add010..32df5491 100644 --- a/src/ui/ui_atoms.c +++ b/src/ui/ui_atoms.c @@ -39,7 +39,7 @@ void QDECL Com_Error( int level, const char *error, ... ) Q_vsnprintf( text, sizeof( text ), error, argptr ); va_end( argptr ); - trap_Error( va( "%s", text ) ); + trap_Error( text ); } void QDECL Com_Printf( const char *msg, ... ) @@ -51,7 +51,7 @@ void QDECL Com_Printf( const char *msg, ... ) Q_vsnprintf( text, sizeof( text ), msg, argptr ); va_end( argptr ); - trap_Print( va( "%s", text ) ); + trap_Print( text ); } -- cgit