diff options
author | Tim Angus <tim@ngus.net> | 2009-10-03 11:36:49 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:15:09 +0000 |
commit | 6f74ece9e3d772e8934e6e8f24defbd5238cbeed (patch) | |
tree | b3a2198a2df3b577c87642a790879962ab48977b /src/game/g_maprotation.c | |
parent | 30cf4eefc9cf32f94aeb2e6d75d856d8ab305122 (diff) |
* (bug 3354, 3353) Fix broken G_MapExists (benmachine)
Diffstat (limited to 'src/game/g_maprotation.c')
-rw-r--r-- | src/game/g_maprotation.c | 10 |
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 ); } /* |