From a02023db719d5910e8a4fe6caf5267eec2381687 Mon Sep 17 00:00:00 2001 From: Zutatensuppe Date: Thu, 24 Dec 2020 13:58:52 +0100 Subject: [PATCH] add removal of owner for unfinished tiles --- scripts/fix_tiles.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/fix_tiles.js b/scripts/fix_tiles.js index 93d231e..d8aa95f 100644 --- a/scripts/fix_tiles.js +++ b/scripts/fix_tiles.js @@ -17,6 +17,11 @@ function fix_tiles(gameId) { GameCommon.setTile(gameId, tile.idx, tile) changed = true } + } else { + tile.owner = 0 + console.log('unowning tile', tile.idx) + GameCommon.setTile(gameId, tile.idx, tile) + changed = true } } if (changed) {