fixes issue #1

master
potatoxel 10 months ago
parent 130d98e176
commit 54ae4e716d
  1. 15
      scenes/game/game.gd

@ -194,13 +194,14 @@ func _process(delta):
func _on_EndTurnButton_pressed():
if turn.layer == "country":
for army in turn.object.armies:
army.entity.current_turn_movable = true
for boat in turn.object.boats:
boat.entity.current_turn_movable = true
turn.object.compute_balance()
$Grid.selected_thing = null
if turn_id != -1:
if turn.layer == "country":
for army in turn.object.armies:
army.entity.current_turn_movable = true
for boat in turn.object.boats:
boat.entity.current_turn_movable = true
turn.object.compute_balance()
$Grid.selected_thing = null
turn_id += 1
if turn_id == len(turns): turn_id = 0

Loading…
Cancel
Save