From f59b0895bbd16999497c7a10956e422759025c52 Mon Sep 17 00:00:00 2001 From: pascald Date: Sat, 3 May 2025 02:06:10 +0200 Subject: [PATCH] final changes for better touch function --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index f69c6ac..665dc46 100644 --- a/main.py +++ b/main.py @@ -715,7 +715,7 @@ async def main(): result = await touch(event) elif event.type == pygame.FINGERDOWN and not touch_start: await touch(event) - + print(result) if await is_LEFT_event(event) or (result == "ontop"): can_tip = current_case.length_units * UNIT_HEIGHT <= TRAILER_HEIGHT if current_case and current_case.allow_snap and can_use_tilt and can_tip: @@ -739,7 +739,7 @@ async def main(): spawn_case_in_game() shake_timer = 10 elif await is_SPACE_event(event) or (result == "snap"): - print(result) + if current_case and current_case.allow_snap: await current_case.animate_snap() can_use_tilt = True