Fix McvExpansionManagerBotModule on CheckCurrentLocation mode.
This commit is contained in:
committed by
Gustas Kažukauskas
parent
70243850b1
commit
bb2a44705f
@@ -109,7 +109,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
IBotRequestUnitProduction[] requestUnitProduction;
|
IBotRequestUnitProduction[] requestUnitProduction;
|
||||||
IBotSuggestRefineryProduction[] suggestRefineryProduction;
|
IBotSuggestRefineryProduction[] suggestRefineryProduction;
|
||||||
|
|
||||||
readonly Dictionary<Actor, CPos> activeMCVs = [];
|
readonly Dictionary<Actor, CPos?> activeMCVs = [];
|
||||||
|
|
||||||
PathFinder pathfinder;
|
PathFinder pathfinder;
|
||||||
ResourceMapBotModule resourceMapModule;
|
ResourceMapBotModule resourceMapModule;
|
||||||
@@ -667,7 +667,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
if (desiredLocation == null)
|
if (desiredLocation == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
activeMCVs[mcv] = checkloc.Value;
|
activeMCVs[mcv] = checkloc;
|
||||||
if (resLoc != null)
|
if (resLoc != null)
|
||||||
{
|
{
|
||||||
foreach (var srp in suggestRefineryProduction)
|
foreach (var srp in suggestRefineryProduction)
|
||||||
|
|||||||
Reference in New Issue
Block a user