From bd74a4e0c0e4e42717c2931eab3febfae219ac9c Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 25 Dec 2024 19:37:20 +0100 Subject: variable hand count --- client/global.gd | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'client/global.gd') diff --git a/client/global.gd b/client/global.gd index ce24f85d..93c73e13 100644 --- a/client/global.gd +++ b/client/global.gd @@ -269,7 +269,8 @@ func configure_viewport_aa(vp: Viewport, aa: String) -> void: vp.msaa_3d = Viewport.MSAA_4X vp.screen_space_aa = Viewport.SCREEN_SPACE_AA_DISABLED -static func hand_to_index(h): - match h: - "left": return 0 - "right": return 1 +static func index_to_hand(i): + match i: + 0: return "left" + 1: return "right" + _: return "unknown" -- cgit v1.2.3-70-g09d2