Kill Map.XOffset / Map.YOffset.
This commit is contained in:
@@ -67,8 +67,8 @@ namespace OpenRA.Traits
|
||||
|
||||
var map = w.Map;
|
||||
|
||||
for (int x = map.XOffset; x < map.XOffset + map.Width; x++)
|
||||
for (int y = map.YOffset; y < map.YOffset + map.Height; y++)
|
||||
for (int x = map.TopLeft.X; x < map.BottomRight.X; x++)
|
||||
for (int y = map.TopLeft.Y; y < map.BottomRight.Y; y++)
|
||||
{
|
||||
// Todo: Valid terrain should be specified in the resource
|
||||
if (!AllowResourceAt(new int2(x,y)))
|
||||
@@ -80,8 +80,8 @@ namespace OpenRA.Traits
|
||||
content[x, y].image = ChooseContent(content[x, y].type);
|
||||
}
|
||||
|
||||
for (int x = map.XOffset; x < map.XOffset + map.Width; x++)
|
||||
for (int y = map.YOffset; y < map.YOffset + map.Height; y++)
|
||||
for (int x = map.TopLeft.X; x < map.BottomRight.X; x++)
|
||||
for (int y = map.TopLeft.Y; y < map.BottomRight.Y; y++)
|
||||
if (content[x, y].type != null)
|
||||
{
|
||||
content[x, y].density = GetIdealDensity(x, y);
|
||||
|
||||
Reference in New Issue
Block a user