a.) If he really intended to make this function useless I would suggest to comment its call and write some comment for the reason instead of this hack. Corsix is basing his changes on this file too.
b.) The comment says it should add 150 instead of 250 as coded in the original.
Why not try this value ?
c.) I don't think Thuds change is of any help. Even worse it might be bad if you take a closer look at what this function is used for.
--utility function used to account for defensive buildings function CpuManager:GetDefensiveBuildingsCostAt( player, pos, tolerance ) profile_start( "GetDefensiveCost" ) local cost = 0 local tolerance_sqr = tolerance*tolerance --for every defensive building in range, add 150 for building in player:GetBuildingsWithGuns() do if distance_sqr( building:GetPosition(), pos ) < tolerance_sqr then cost = cost + 0 end end profile_end( "GetDefensiveCost" ) return cost end