Merge pull request #3143 from Mailaender/ai-basewalk

Allow the AI to base-walk without restrictions
This commit is contained in:
Paul Chote
2013-05-04 04:32:39 -07:00

View File

@@ -907,7 +907,7 @@ namespace OpenRA.Mods.RA.AI
CPos defenseCenter; CPos defenseCenter;
public CPos? ChooseBuildLocation(string actorType, BuildingType type) public CPos? ChooseBuildLocation(string actorType, BuildingType type)
{ {
return ChooseBuildLocation(actorType, true, MaxBaseDistance, type); return ChooseBuildLocation(actorType, false, MaxBaseDistance, type);
} }
public CPos? ChooseBuildLocation(string actorType, bool distanceToBaseIsImportant, int maxBaseDistance, BuildingType type) public CPos? ChooseBuildLocation(string actorType, bool distanceToBaseIsImportant, int maxBaseDistance, BuildingType type)
@@ -956,7 +956,7 @@ namespace OpenRA.Mods.RA.AI
break; break;
} }
return null; // i don't know where to put it. return null; // Don't know where to put it.
} }
public void Tick(Actor self) public void Tick(Actor self)