Temporarily work around RadarWidget corruption.
This commit is contained in:
@@ -739,10 +739,10 @@ namespace OpenRA
|
|||||||
|
|
||||||
public bool Contains(MPos uv)
|
public bool Contains(MPos uv)
|
||||||
{
|
{
|
||||||
// The first check ensures that the cell is within the valid map region, avoiding
|
// TODO: Checking against the bounds excludes valid parts of the map if MaxTerrainHeight > 0.
|
||||||
// potential crashes in deeper code. All CellLayers have the same geometry, and
|
// Unfortunatley, doing this properly leads to memory corruption issues in the (unsafe) radar
|
||||||
// CustomTerrain is convenient (cellProjection may be null and others are Lazy).
|
// rendering code.
|
||||||
return CustomTerrain.Contains(uv) && ProjectedCellsCovering(uv).All(containsTest);
|
return Bounds.Contains(uv.U, uv.V) && ProjectedCellsCovering(uv).All(containsTest);
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool Contains(PPos puv)
|
public bool Contains(PPos puv)
|
||||||
|
|||||||
Reference in New Issue
Block a user