Actors outside the world can't grant buildable area.
This commit is contained in:
@@ -82,7 +82,7 @@ namespace OpenRA.Mods.RA.Buildings
|
|||||||
{
|
{
|
||||||
var pos = new CPos(x, y);
|
var pos = new CPos(x, y);
|
||||||
var at = bi.GetBuildingAt(pos);
|
var at = bi.GetBuildingAt(pos);
|
||||||
if (at == null || !at.HasTrait<GivesBuildableArea>())
|
if (at == null || !at.IsInWorld || !at.HasTrait<GivesBuildableArea>())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (at.Owner == p || (allyBuildRadius && at.Owner.Stances[p] == Stance.Ally))
|
if (at.Owner == p || (allyBuildRadius && at.Owner.Stances[p] == Stance.Ally))
|
||||||
|
|||||||
Reference in New Issue
Block a user