summaryrefslogtreecommitdiff
path: root/src/game/g_buildable.c
diff options
context:
space:
mode:
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;
}