|
|
@ -126,7 +126,7 @@ public class Terrain { |
|
|
|
if (terrain_cell.x >= this.cell_count.x) |
|
|
|
if (terrain_cell.x >= this.cell_count.x) |
|
|
|
terrain_cell.x = terrain_cell.x - 1; |
|
|
|
terrain_cell.x = terrain_cell.x - 1; |
|
|
|
|
|
|
|
|
|
|
|
if (terrain_cell.x >= this.cell_count.y) |
|
|
|
if (terrain_cell.y >= this.cell_count.y) |
|
|
|
terrain_cell.y = terrain_cell.y - 1; |
|
|
|
terrain_cell.y = terrain_cell.y - 1; |
|
|
|
|
|
|
|
|
|
|
|
return terrain_cell; |
|
|
|
return terrain_cell; |
|
|
|