fix a bug
This commit is contained in:
parent
b6b2e3142e
commit
688a2d8145
@ -80,6 +80,7 @@ void GameBoard::turnUpdate() {
|
||||
tile.unit += 1;
|
||||
|
||||
if (tile.type == TileType::Swamp) {
|
||||
if (tile.unit > 0)
|
||||
tile.unit -= 1;
|
||||
if (tile.unit == 0)
|
||||
tile.owner = neutral_player;
|
||||
|
Loading…
x
Reference in New Issue
Block a user