summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game/g_maprotation.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/game/g_maprotation.c b/src/game/g_maprotation.c
index adc7793d..b97b3b6f 100644
--- a/src/game/g_maprotation.c
+++ b/src/game/g_maprotation.c
@@ -36,15 +36,7 @@ Check if a map exists
*/
static qboolean G_MapExists( char *name )
{
- fileHandle_t f;
-
- if( trap_FS_FOpenFile( va( "maps/%s.bsp", name ), &f, FS_READ ) > 0 )
- {
- trap_FS_FCloseFile( f );
- return qtrue;
- }
- else
- return qfalse;
+ return trap_FS_FOpenFile( va( "maps/%s.bsp", name ), NULL, FS_READ );
}
/*