diff options
author | Ben Millwood <thebenmachine@gmail.com> | 2009-10-03 12:54:44 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:16:19 +0000 |
commit | 0065af08e35d3d88182011a79d9ba6ce29165c09 (patch) | |
tree | 2315d338b4cddd3a87483da8ea7d3b6b8c6d5c1a /src/game | |
parent | 64a994305148d88bc43560224a30a67ebb1a3ee6 (diff) |
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"
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/g_cmds.c | 3 |
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; |