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