1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00

Fix "disableGrid" option causing glitches in the puzzle dlc

This commit is contained in:
tobspr 2021-06-22 14:37:03 +02:00
parent 5b035d7778
commit 10428ec6b9

View File

@ -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);