diff options
author | /dev/humancontroller <devhc@example.com> | 2015-06-08 14:45:35 +0200 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-03-09 13:51:15 +0100 |
commit | 0b0e4c0db6886b98fcd593c3ca496e75c24b8a1e (patch) | |
tree | 7a353751f1d2a713d4140fda8afb21e881d453f9 /src/game/g_maprotation.c | |
parent | 639639c22d45eda949809446e4c29e0ed4c7d290 (diff) |
fix up G_MapExists(), and use it more
Diffstat (limited to 'src/game/g_maprotation.c')
-rw-r--r-- | src/game/g_maprotation.c | 4 |
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; } /* |