Browse Source

Allow love.timer.sleep(0).

Alex Szpakowski 6 years ago
parent
commit
b439ff07ce
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/timer/Timer.cpp

+ 1 - 1
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));
 }