Remove redundant BuildingInfluence checks.
Buildings are already excluded by the ActorMap checks.
This commit is contained in:
committed by
Matthias Mailänder
parent
63d597e4ad
commit
5e032edd28
@@ -180,8 +180,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
continue;
|
||||
|
||||
// Don't drop on any actors
|
||||
if (self.World.WorldActor.Trait<BuildingInfluence>().GetBuildingAt(p) != null
|
||||
|| self.World.ActorMap.GetActorsAt(p).Any())
|
||||
if (self.World.ActorMap.GetActorsAt(p).Any())
|
||||
continue;
|
||||
|
||||
return p;
|
||||
|
||||
Reference in New Issue
Block a user