From b439ff07cebaa037881ddbdc8cf2b6da41f555c9 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Tue, 2 Apr 2019 20:12:09 -0300 Subject: [PATCH] Allow love.timer.sleep(0). --- src/modules/timer/Timer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/timer/Timer.cpp b/src/modules/timer/Timer.cpp index e96f91146..83a0b0d0c 100644 --- a/src/modules/timer/Timer.cpp +++ b/src/modules/timer/Timer.cpp @@ -90,7 +90,7 @@ double Timer::step() void Timer::sleep(double seconds) const { - if (seconds > 0) + if (seconds >= 0) love::sleep((unsigned int)(seconds*1000)); }