summaryrefslogtreecommitdiff
path: root/src/game/g_admin.c
diff options
context:
space:
mode:
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
commit0b0e4c0db6886b98fcd593c3ca496e75c24b8a1e (patch)
tree7a353751f1d2a713d4140fda8afb21e881d453f9 /src/game/g_admin.c
parent639639c22d45eda949809446e4c29e0ed4c7d290 (diff)
fix up G_MapExists(), and use it more
Diffstat (limited to 'src/game/g_admin.c')
-rw-r--r--src/game/g_admin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c
index 2d6aeaba..24330aa2 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -2044,7 +2044,7 @@ qboolean G_admin_changemap( gentity_t *ent )
trap_Argv( 1, map, sizeof( map ) );
- if( !trap_FS_FOpenFile( va( "maps/%s.bsp", map ), NULL, FS_READ ) )
+ if( !G_MapExists( map ) )
{
ADMP( va( "^3changemap: ^7invalid map name '%s'\n", map ) );
return qfalse;