add removal of owner for unfinished tiles

This commit is contained in:
Zutatensuppe 2020-12-24 13:58:52 +01:00
parent 5f890b40f5
commit a02023db71

View file

@ -17,6 +17,11 @@ function fix_tiles(gameId) {
GameCommon.setTile(gameId, tile.idx, tile) GameCommon.setTile(gameId, tile.idx, tile)
changed = true changed = true
} }
} else {
tile.owner = 0
console.log('unowning tile', tile.idx)
GameCommon.setTile(gameId, tile.idx, tile)
changed = true
} }
} }
if (changed) { if (changed) {