mirror of
https://github.com/badvision/lawless-legends.git
synced 2024-09-13 14:55:28 +00:00
Accidentally left important canvas clear logic commented out.
This commit is contained in:
parent
d39b61399d
commit
fc00a1febe
@ -305,13 +305,12 @@ public class MapEditor extends Editor<Map, MapEditor.DrawMode> implements EventH
|
|||||||
boolean reset = tiles == null || tiles.length <= cols || tiles[0] == null || tiles[0].length <= rows;
|
boolean reset = tiles == null || tiles.length <= cols || tiles[0] == null || tiles[0].length <= rows;
|
||||||
if (forceReset || reset) {
|
if (forceReset || reset) {
|
||||||
tiles = new String[cols + 1][rows + 1];
|
tiles = new String[cols + 1][rows + 1];
|
||||||
|
for (int x = 0; x < drawCanvas.getWidth(); x += 10) {
|
||||||
// for (int x = 0; x < drawCanvas.getWidth(); x += 10) {
|
for (int y = 0; y < drawCanvas.getHeight(); y += 10) {
|
||||||
// for (int y = 0; y < drawCanvas.getHeight(); y += 10) {
|
drawCanvas.getGraphicsContext2D().setFill(getFillPattern(x, y));
|
||||||
// drawCanvas.getGraphicsContext2D().setFill(getFillPattern(x, y));
|
drawCanvas.getGraphicsContext2D().fillRect(x, y, 10, 10);
|
||||||
// drawCanvas.getGraphicsContext2D().fillRect(x, y, 10, 10);
|
}
|
||||||
// }
|
}
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user