fixes dumb WEAP roof
This commit is contained in:
@@ -43,9 +43,7 @@ namespace OpenRa.Game.Traits
|
|||||||
roof.Tick();
|
roof.Tick();
|
||||||
|
|
||||||
var b = self.Bounds;
|
var b = self.Bounds;
|
||||||
if (isOpen && !Game.SelectUnitsInBox(
|
if (isOpen && null == Game.UnitInfluence.GetUnitAt(((1/24f) * self.CenterLocation).ToInt2()))
|
||||||
new float2(b.Left, b.Top),
|
|
||||||
new float2(b.Right, b.Bottom)).Any(a => a.traits.Contains<Mobile>()))
|
|
||||||
{
|
{
|
||||||
isOpen = false;
|
isOpen = false;
|
||||||
roof.PlayBackwardsThen(prefix + "build-top", () => roof.Play(prefix + "idle-top"));
|
roof.PlayBackwardsThen(prefix + "build-top", () => roof.Play(prefix + "idle-top"));
|
||||||
|
|||||||
Reference in New Issue
Block a user