replaced several isdefined( condition ) && condition with is_true()

Also added the corresponding include if it was missing.
This commit is contained in:
JezuzLizard
2020-07-23 07:27:39 -07:00
parent b8751d00fc
commit 272a52cdf6
33 changed files with 109 additions and 98 deletions

View File

@ -208,7 +208,7 @@ bot_sd_defender( zone, isplanted ) //checked partially changed to match cerberus
continue;
}
height = node[ i ].origin[ 2 ] - zone.nearest_node.origin[ 2 ];
if ( isDefined( isplanted ) && isplanted )
if ( is_true( isplanted ) )
{
dist = distance2d( node[ i ].origin, zone.nearest_node.origin );
score = ( 10000 - dist ) + height;