Rename SearchFromOrderRadius to SearchFromHarvesterRadius

This commit is contained in:
abcdefg30
2019-08-10 13:31:47 +02:00
committed by teinarss
parent 698ef5e375
commit bfc3e1354b
4 changed files with 39 additions and 3 deletions

View File

@@ -176,11 +176,11 @@ namespace OpenRA.Mods.Common.Activities
// Determine where to search from and how far to search:
var searchFromLoc = lastHarvestedCell ?? GetSearchFromProcLocation(self);
var searchRadius = lastHarvestedCell.HasValue ? harvInfo.SearchFromOrderRadius : harvInfo.SearchFromProcRadius;
var searchRadius = lastHarvestedCell.HasValue ? harvInfo.SearchFromHarvesterRadius : harvInfo.SearchFromProcRadius;
if (!searchFromLoc.HasValue)
{
searchFromLoc = self.Location;
searchRadius = harvInfo.SearchFromOrderRadius;
searchRadius = harvInfo.SearchFromHarvesterRadius;
}
var searchRadiusSquared = searchRadius * searchRadius;