add removal of owner for unfinished tiles
This commit is contained in:
parent
5f890b40f5
commit
a02023db71
1 changed files with 5 additions and 0 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue