Skip to content

Commit

Permalink
Removed unneeded va() and use CG_Error instead of trap_Error in cgame…
Browse files Browse the repository at this point in the history
…. Found by Ensiform.
  • Loading branch information
zturtleman committed Jun 18, 2012
1 parent 1d70ffc commit 2579738
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/cgame/cg_main.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2579738

Please sign in to comment.