Commit f1307d78 by Naliwe GS

Small changes

parent 1ba11f7e
No preview for this file type
......@@ -95,8 +95,6 @@ namespace Assets.Scripts.MapGeneration
{
for (var y = origin.Position.y - 1; y <= origin.Position.y + 1; y++)
{
Debug.Log(string.Format("Processing cell {0}:{1}", x, y));
if ((Math.Abs(x - origin.Position.x) > .1f || Math.Abs(y - origin.Position.y) > .1f)
&& IsInMapRange(map, (int) x, (int) y) && map[(uint) x, (uint) y] != origin.Type)
{
......@@ -105,8 +103,6 @@ namespace Assets.Scripts.MapGeneration
}
}
Debug.Log(string.Format("{0}", ret.Count));
return ret;
}
......@@ -117,7 +113,6 @@ namespace Assets.Scripts.MapGeneration
private static bool IsInMapRange(Map map, int x, int y)
{
Debug.Log(string.Format("Is cell {0}:{1} in map range", x, y));
return (x >= 0 && x < map.Columns &&
y >= 0 && y < map.Rows);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment