mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 06:31:47 +00:00
Removed unneeded va() and use CG_Error instead of trap_Error in cgame. Found by Ensiform.
This commit is contained in:
parent
1d70ffc9b2
commit
2579738256
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue