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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user