summaryrefslogtreecommitdiff
path: root/src/game/g_maprotation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_maprotation.c')
-rw-r--r--src/game/g_maprotation.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_maprotation.c b/src/game/g_maprotation.c
index e6d773e8..a25c9749 100644
--- a/src/game/g_maprotation.c
+++ b/src/game/g_maprotation.c
@@ -118,9 +118,9 @@ G_MapExists
Check if a map exists
===============
*/
-qboolean G_MapExists( char *name )
+qboolean G_MapExists( const char *name )
{
- return trap_FS_FOpenFile( va( "maps/%s.bsp", name ), NULL, FS_READ );
+ return trap_FS_FOpenFile( va( "maps/%s.bsp", name ), NULL, FS_READ ) > 0;
}
/*