From 9d6d1e1da31f923868315f95bcbe09ca8af4b5fb Mon Sep 17 00:00:00 2001 From: Natalie Date: Sun, 12 Apr 2026 14:24:46 -0700 Subject: [PATCH] debug: log tiles count at frame 10 --- src/game/engine/scenes/tests/auto_play.gd | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/game/engine/scenes/tests/auto_play.gd b/src/game/engine/scenes/tests/auto_play.gd index 7f542c30..3094c792 100644 --- a/src/game/engine/scenes/tests/auto_play.gd +++ b/src/game/engine/scenes/tests/auto_play.gd @@ -98,12 +98,13 @@ func _process(_delta: float) -> bool: if _frame == 5: _dismiss_popups() if _frame == 10 and _turn_count == 0: - # Fix start positions on first turn (map is loaded by now) var gs2: Node = root.get_node_or_null("/root/GameState") if gs2 != null: var gm2: RefCounted = gs2.get_game_map() - if gm2 != null and gm2.start_positions.size() == 0 and gm2.tiles.size() > 0: - _fix_start_positions(gm2, gs2) + if gm2 != null: + print(" frame10: tiles=%d start_pos=%d" % [gm2.tiles.size(), gm2.start_positions.size()]) + if gm2.start_positions.size() == 0: + _fix_start_positions(gm2, gs2) if _frame == 15: _turn_count += 1 _play_turn()