old tile replacement bug fix
All checks were successful
linting & formatting / build (push) Successful in 19s
itch.io publish action / build (web, html) (push) Successful in 3m50s

This commit is contained in:
duncgibbs 2026-04-24 12:35:46 -05:00
parent 14e2073322
commit bf30002763

View File

@ -75,6 +75,7 @@ func place_active_tile() -> void:
Globals.board_game.current_board_state.players[0].build_actions_taken += 1 Globals.board_game.current_board_state.players[0].build_actions_taken += 1
active_tile.modulate = Color(1, 1, 1, 1) active_tile.modulate = Color(1, 1, 1, 1)
active_tile.coords = current_map_coord active_tile.coords = current_map_coord
active_tile.day_placed = Globals.board_game.current_board_state.day
tiles[current_map_coord] = active_tile tiles[current_map_coord] = active_tile
active_tile = null active_tile = null
board_state_changed.emit() board_state_changed.emit()
@ -93,6 +94,7 @@ func place_active_tile() -> void:
tiles[current_map_coord].queue_free() tiles[current_map_coord].queue_free()
active_tile.modulate = Color(1, 1, 1, 1) active_tile.modulate = Color(1, 1, 1, 1)
active_tile.coords = current_map_coord active_tile.coords = current_map_coord
active_tile.day_placed = Globals.board_game.current_board_state.day
tiles[current_map_coord] = active_tile tiles[current_map_coord] = active_tile
active_tile = null active_tile = null
board_state_changed.emit() board_state_changed.emit()