From 0065af08e35d3d88182011a79d9ba6ce29165c09 Mon Sep 17 00:00:00 2001 From: Ben Millwood Date: Sat, 3 Oct 2009 12:54:44 +0000 Subject: Ignore unpowered buildables when checking if too close to the enemy and remove extra newline in "This location is too close to the enemy to evolve" --- src/game/g_cmds.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/game/g_cmds.c') 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; -- cgit