summaryrefslogtreecommitdiff
path: root/src/game/g_spawn.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2003-06-16 03:02:08 +0000
committerTim Angus <tim@ngus.net>2003-06-16 03:02:08 +0000
commit72b7a39be0762a9c604781404f047e2a0653f5f2 (patch)
tree3b96372204860b05dc854b0b355317492d46f1f1 /src/game/g_spawn.c
parent6a4001989d0307be00dd85b7aa75cf1c5b09acb6 (diff)
* Exchanged Dragoon and Hydra to better fit the models
* Adjusted relavant attributes * Disabled bank * Credits now non-volatile * In stages where the advanced builder is allowed it is now available from the egg
Diffstat (limited to 'src/game/g_spawn.c')
-rw-r--r--src/game/g_spawn.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/game/g_spawn.c b/src/game/g_spawn.c
index 55b90229..2dec4aa2 100644
--- a/src/game/g_spawn.c
+++ b/src/game/g_spawn.c
@@ -307,8 +307,16 @@ qboolean G_CallSpawn( gentity_t *ent )
//check buildable spawn functions
if( ( buildable = BG_FindBuildNumForEntityName( ent->classname ) ) != BA_NONE )
{
- G_SpawnBuildable( ent, buildable );
- return qtrue;
+ if( BG_FindStagesForBuildable( buildable, 1 ) )
+ {
+ G_SpawnBuildable( ent, buildable );
+ return qtrue;
+ }
+ else
+ {
+ G_Printf( "G_CallSpawn: buildable disabled\n" );
+ return qfalse;
+ }
}
// check normal spawn functions