summaryrefslogtreecommitdiff
path: root/src/game/g_cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r--src/game/g_cmds.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 02c35643..65eedc3f 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -1814,7 +1814,8 @@ void Cmd_Class_f( gentity_t *ent )
other = &g_entities[ entityList[ i ] ];
if( ( other->client && other->client->ps.stats[ STAT_TEAM ] == TEAM_HUMANS ) ||
- ( other->s.eType == ET_BUILDABLE && other->buildableTeam == TEAM_HUMANS ) )
+ ( other->s.eType == ET_BUILDABLE && other->buildableTeam == TEAM_HUMANS &&
+ other->powered ) )
{
G_TriggerMenu( clientNum, MN_A_TOOCLOSE );
return;