From 7d7b15e3fb822b002deb02a6a6522ea69f14c724 Mon Sep 17 00:00:00 2001 From: Sebastian Morr Date: Thu, 29 Oct 2020 15:58:26 +0100 Subject: [PATCH] Show single card properly upright --- scenes/cards.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scenes/cards.gd b/scenes/cards.gd index bcaaa3d..04df991 100644 --- a/scenes/cards.gd +++ b/scenes/cards.gd @@ -66,6 +66,8 @@ func arrange_cards(): var angle_between_cards = 0 if amount_cards > 1: angle_between_cards = total_angle / (amount_cards-1) + else: + total_angle = 0 var current_angle = -total_angle/2 for card in get_tree().get_nodes_in_group("cards"):