From 10428ec6b9aaf00f5fa681682064f75065284288 Mon Sep 17 00:00:00 2001 From: tobspr Date: Tue, 22 Jun 2021 14:37:03 +0200 Subject: [PATCH] Fix "disableGrid" option causing glitches in the puzzle dlc --- src/js/game/map_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/game/map_view.js b/src/js/game/map_view.js index 296291e9..f4372a51 100644 --- a/src/js/game/map_view.js +++ b/src/js/game/map_view.js @@ -186,7 +186,7 @@ export class MapView extends BaseMap { */ drawBackground(parameters) { // Render tile grid - if (!this.root.app.settings.getAllSettings().disableTileGrid) { + if (!this.root.app.settings.getAllSettings().disableTileGrid || !this.root.gameMode.hasResources()) { const dpi = this.backgroundCacheDPI; parameters.context.scale(1 / dpi, 1 / dpi);