summaryrefslogtreecommitdiff
path: root/src/game/g_spawn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_spawn.c')
-rw-r--r--src/game/g_spawn.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/g_spawn.c b/src/game/g_spawn.c
index 3e0e1812..aee0cfd5 100644
--- a/src/game/g_spawn.c
+++ b/src/game/g_spawn.c
@@ -327,6 +327,10 @@ qboolean G_CallSpawn( gentity_t *ent )
//check buildable spawn functions
if( ( buildable = BG_FindBuildNumForEntityName( ent->classname ) ) != BA_NONE )
{
+ // don't spawn built-in buildings if we are using a custom layout
+ if( level.layout[ 0 ] )
+ return qtrue;
+
if( buildable == BA_A_SPAWN || buildable == BA_H_SPAWN )
{
ent->s.angles[ YAW ] += 180.0f;