summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2009-10-03 11:36:49 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:15:09 +0000
commit6f74ece9e3d772e8934e6e8f24defbd5238cbeed (patch)
treeb3a2198a2df3b577c87642a790879962ab48977b /src/game
parent30cf4eefc9cf32f94aeb2e6d75d856d8ab305122 (diff)
* (bug 3354, 3353) Fix broken G_MapExists (benmachine)
Diffstat (limited to 'src/game')
-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 );
}
/*