From 6f74ece9e3d772e8934e6e8f24defbd5238cbeed Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sat, 3 Oct 2009 11:36:49 +0000 Subject: * (bug 3354, 3353) Fix broken G_MapExists (benmachine) --- src/game/g_maprotation.c | 10 +--------- 1 file changed, 1 insertion(+), 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 ); } /* -- cgit