From 30a49634f954c4e5b6b66f2d9c8c711afaccbbbe Mon Sep 17 00:00:00 2001 From: Miso Date: Sat, 18 Apr 2026 07:37:06 -0600 Subject: [PATCH] Ref #61: fix cancel_build_placement to read pending_build_kind before clearing --- scripts/main.gd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/main.gd b/scripts/main.gd index 578e7d8..a863907 100644 --- a/scripts/main.gd +++ b/scripts/main.gd @@ -853,10 +853,12 @@ func queue_structure_at(pos: Vector2i, kind: String) -> void: func cancel_build_placement() -> void: if pending_build_kind.is_empty(): return + var kind := pending_build_kind pending_build_kind = "" hover_tile_index = -1 world_label.text = "Colony" - world_label.text = "Colony • place another " + cap(pending_build_kind) + if not kind.is_empty(): + world_label.text = "Colony • place another " + cap(kind) func maybe_fire_event() -> void: if tick % EVENT_INTERVAL_TICKS != 0: