Merge pull request #9709 from reaperrr/unitsat-actorsat

Rename ActorMap *UnitsAt* occurences to *ActorsAt*
This commit is contained in:
atlimit8
2015-10-21 09:56:41 -05:00
23 changed files with 50 additions and 50 deletions

View File

@@ -63,7 +63,7 @@ namespace OpenRA.Mods.Common.Traits
public void Tick(Actor self)
{
if (desiredFrame > 0 && !self.World.ActorMap.GetUnitsAt(openExit).Any(a => a != self))
if (desiredFrame > 0 && !self.World.ActorMap.GetActorsAt(openExit).Any(a => a != self))
desiredFrame = 0;
}

View File

@@ -92,7 +92,7 @@ namespace OpenRA.Mods.Common.Traits
// Update connection to neighbours
var adjacentActors = CVec.Directions.SelectMany(dir =>
self.World.ActorMap.GetUnitsAt(self.Location + dir));
self.World.ActorMap.GetActorsAt(self.Location + dir));
adjacent = 0;
foreach (var a in adjacentActors)
@@ -126,7 +126,7 @@ namespace OpenRA.Mods.Common.Traits
static void UpdateNeighbours(Actor self)
{
var adjacentActors = CVec.Directions.SelectMany(dir =>
self.World.ActorMap.GetUnitsAt(self.Location + dir))
self.World.ActorMap.GetActorsAt(self.Location + dir))
.Select(a => a.TraitOrDefault<WithWallSpriteBody>())
.Where(a => a != null);