summaryrefslogtreecommitdiff
path: root/src/game/g_buildable.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2005-07-22 01:32:50 +0000
committerTim Angus <tim@ngus.net>2005-07-22 01:32:50 +0000
commitce00395ab73bb763d5c2b19c2fcae46e9b8bfb8e (patch)
treed2e6ec40a28beb426ae00968bdd2052e6c1478fe /src/game/g_buildable.c
parentb104fc884a9644c4469eb2d6076bee0c6720f132 (diff)
* Added a report of which stages each team had reached to the intermission scoreboard
* Advanced construction kit is now free * Fixed the bug where the armoury and repeater would still work via command when not powered * Fixed bug where the granger could evolve whilst waiting for its build timer * Increased the jump height of the base granger slightly
Diffstat (limited to 'src/game/g_buildable.c')
-rw-r--r--src/game/g_buildable.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index c9079f39..a33a209e 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -2405,7 +2405,13 @@ qboolean G_BuildableRange( vec3_t origin, float r, buildable_t buildable )
{
ent = &g_entities[ entityList[ i ] ];
- if( ent->s.eType == ET_BUILDABLE && ent->s.modelindex == buildable && ent->spawned )
+ if( ent->s.eType != ET_BUILDABLE )
+ continue;
+
+ if( ent->biteam == BIT_HUMANS && !ent->powered )
+ continue;
+
+ if( ent->s.modelindex == buildable && ent->spawned )
return qtrue;
}