From 49d07e9d64419020243e0a7f57a6a14df7c5bbc1 Mon Sep 17 00:00:00 2001 From: blackhand1001 Date: Fri, 25 Oct 2019 19:15:53 -0400 Subject: [PATCH] Fix MCV Manager glitch when restrict building area is enabled. Fix MCV Manager glitch when restrict building area is enabled. It was checking if the location was close enough to the Base center instead of using the MCV Managers min and max ranges. This would cause it to often have no valid locations despite having a huge range. --- OpenRA.Mods.Common/Traits/BotModules/McvManagerBotModule.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/BotModules/McvManagerBotModule.cs b/OpenRA.Mods.Common/Traits/BotModules/McvManagerBotModule.cs index 9e972a5faf..e4f12aec7b 100644 --- a/OpenRA.Mods.Common/Traits/BotModules/McvManagerBotModule.cs +++ b/OpenRA.Mods.Common/Traits/BotModules/McvManagerBotModule.cs @@ -206,9 +206,6 @@ namespace OpenRA.Mods.Common.Traits if (!world.CanPlaceBuilding(cell + offset, actorInfo, bi, null)) continue; - if (distanceToBaseIsImportant && !bi.IsCloseEnoughToBase(world, player, actorInfo, cell)) - continue; - return cell; }