Fix FrozenActorLayer.FootprintBounds.

The size of the bounds was too small (as rectangle has exclusive edges on the right and bottom). This meant some intersection tests would fail and thus the frozen actor was not found when searching the partition bins.
This commit is contained in:
RoosterDragon
2016-01-03 23:36:10 +00:00
parent 8d7ed98636
commit 0dc51f79a0

View File

@@ -209,7 +209,7 @@ namespace OpenRA.Traits
maxV = p.V;
}
return Rectangle.FromLTRB(minU, minV, maxU, maxV);
return Rectangle.FromLTRB(minU, minV, maxU + 1, maxV + 1);
}
public void Tick(Actor self)