diff options
Diffstat (limited to 'src/game/g_maprotation.c')
-rw-r--r-- | src/game/g_maprotation.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/game/g_maprotation.c b/src/game/g_maprotation.c index a25c9749..f45ee4ac 100644 --- a/src/game/g_maprotation.c +++ b/src/game/g_maprotation.c @@ -153,6 +153,18 @@ void G_PerformMapChange( const char *map ) /* =============== +G_LayoutExists + +Check if a layout exists for a map +=============== +*/ +qboolean G_LayoutExists( const char *map, const char *layout ) +{ + return !Q_stricmp( layout, "*BUILTIN*" ) || trap_FS_FOpenFile( va( "layouts/%s/%s.dat", map, layout ), NULL, FS_READ ) > 0; +} + +/* +=============== G_RotationExists Check if a rotation exists |