Removed unneeded va() and use CG_Error instead of trap_Error in cgame. Found by Ensiform.

This commit is contained in:
Zack Middleton 2012-06-18 16:36:21 +00:00
parent 1d70ffc9b2
commit 2579738256

View file

@ -1442,13 +1442,13 @@ void CG_LoadMenus(const char *menuFile) {
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;
}