From 121ef72645f53e5df9400ecf40b92784abac9f38 Mon Sep 17 00:00:00 2001 From: Christopher Schwarz Date: Tue, 3 Aug 2010 23:51:51 +0000 Subject: * Fix "overmind has awakened" CP from being sent at the incorrect time --- src/game/g_buildable.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/game/g_buildable.c') diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index c6576785..e0a2e93e 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -2663,7 +2663,13 @@ void G_BuildableThink( gentity_t *ent, int msec ) if( !ent->spawned && ent->health > 0 ) { if( ent->buildTime + buildTime < level.time ) + { ent->spawned = qtrue; + if( ent->s.modelindex == BA_A_OVERMIND ) + { + G_TeamCommand( TEAM_ALIENS, "cp \"The Overmind has awakened!\"" ); + } + } } // Timer actions @@ -3645,13 +3651,7 @@ static gentity_t *G_Build( gentity_t *builder, buildable_t buildable, vec3_t ori G_SetIdleBuildableAnim( built, BG_Buildable( buildable )->idleAnim ); if( built->builtBy >= 0 ) - { G_SetBuildableAnim( built, BANIM_CONSTRUCT1, qtrue ); - if( buildable == BA_A_OVERMIND ) - { - G_TeamCommand( TEAM_ALIENS, "cp \"The Overmind has awakened!\"" ); - } - } trap_LinkEntity( built ); -- cgit