[quake3-commits] r2270 - trunk/code/cgame

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon Jun 18 12:36:21 EDT 2012


Author: ztm
Date: 2012-06-18 12:36:21 -0400 (Mon, 18 Jun 2012)
New Revision: 2270

Modified:
   trunk/code/cgame/cg_main.c
Log:
Removed unneeded va() and use CG_Error instead of trap_Error in cgame. Found by Ensiform.

Modified: trunk/code/cgame/cg_main.c
===================================================================
--- trunk/code/cgame/cg_main.c	2012-06-18 16:33:13 UTC (rev 2269)
+++ trunk/code/cgame/cg_main.c	2012-06-18 16:36:21 UTC (rev 2270)
@@ -1442,13 +1442,13 @@
 		Com_Printf( S_COLOR_YELLOW "menu file not found: %s, using default\n", menuFile );
 		len = trap_FS_FOpenFile( "ui/hud.txt", &f, FS_READ );
 		if (!f) {
-			trap_Error( va( S_COLOR_RED "default menu file not found: ui/hud.txt, unable to continue!" ) );
+			CG_Error( S_COLOR_RED "default menu file not found: ui/hud.txt, unable to continue!" );
 		}
 	}
 
 	if ( len >= MAX_MENUDEFFILE ) {
 		trap_FS_FCloseFile( f );
-		trap_Error( va( S_COLOR_RED "menu file too large: %s is %i, max allowed is %i", menuFile, len, MAX_MENUDEFFILE ) );
+		CG_Error( S_COLOR_RED "menu file too large: %s is %i, max allowed is %i", menuFile, len, MAX_MENUDEFFILE );
 		return;
 	}
 



More information about the quake3-commits mailing list