diff --git a/frozen/pewpew10/pew.py b/frozen/pewpew10/pew.py index 99819cd5ae..333b193d5b 100644 --- a/frozen/pewpew10/pew.py +++ b/frozen/pewpew10/pew.py @@ -63,8 +63,12 @@ def show(pix): def tick(delay): global _tick + now = time.monotonic() _tick += delay - time.sleep(max(0, _tick - time.monotonic())) + if _tick < now: + _tick = now + else: + time.sleep(_tick - now) class GameOver(Exception):