Skip to content

Commit

Permalink
never draw a grid on a raw height map
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnBerg60 committed Nov 11, 2021
1 parent 8902366 commit 0931f6d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -647,8 +647,12 @@ function getHeightmap(mode = 0, callback) {

switch (mode) {
case 0:
// never draw a grid on a raw heightmap
let savedDrawGrid = document.getElementById('drawGrid').checked;
document.getElementById('drawGrid').checked = false;
citiesmap = toCitiesmap(heightmap, watermap, xOffset, yOffset);
download('heightmap.raw', citiesmap);
document.getElementById('drawGrid').checked = savedDrawGrid;
break;
case 1:
citiesmap = toCitiesmap(heightmap, watermap, xOffset, yOffset);
Expand Down

0 comments on commit 0931f6d

Please sign in to comment.