diff options
author | Ben Millwood <thebenmachine@gmail.com> | 2009-10-03 12:19:35 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:15:51 +0000 |
commit | e132ac1e021e41059d105f8c9e8614b7dcda525b (patch) | |
tree | ca855653217c4a63b4187fb00aeca9dc8a49e3c4 /src/game | |
parent | c1d729dfbc605c4fa514bce9e1663961ff7ede51 (diff) |
I am a proper noob.
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/g_buildable.c | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index 5880166c..574ab230 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -413,25 +413,6 @@ qboolean G_FindOvermind( gentity_t *self ) /* ================ -G_IsOvermindBuilt - -Simple wrapper to G_FindOvermind to check if a location has an overmind -================ -*/ -static qboolean G_IsOvermindBuilt( void ) -{ - gentity_t dummy; - - memset( &dummy, 0, sizeof( gentity_t ) ); - - dummy.overmindNode = NULL; - dummy.buildableTeam = TEAM_ALIENS; - - return G_FindOvermind( &dummy ); -} - -/* -================ G_FindCreep attempt to find creep for self, return qtrue if successful @@ -1606,7 +1587,7 @@ void ATrapper_Think( gentity_t *self ) int range = BG_Buildable( self->s.modelindex )->turretRange; int firespeed = BG_Buildable( self->s.modelindex )->turretFireSpeed; - self->powered = G_IsOvermindBuilt( ); + self->powered = level.overmindPresent; self->nextthink = level.time + BG_Buildable( self->s.modelindex )->nextthink; AGeneric_CreepCheck( self ); @@ -3053,8 +3034,8 @@ itemBuildError_t G_CanBuild( gentity_t *ent, buildable_t buildable, int distance // Check there is an Overmind if( buildable != BA_A_OVERMIND ) { - if( level.overmindPresent ) - reason = IBE_NOOVERMIND; + if( !level.overmindPresent ) + reason = IBE_NOOVERMIND; } //check there is creep near by for building on |