Bläddra i källkod

Allow love.timer.sleep(0).

Alex Szpakowski 6 år sedan
förälder
incheckning
b439ff07ce
1 ändrade filer med 1 tillägg och 1 borttagningar
  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
 void Timer::sleep(double seconds) const
 {
 {
-	if (seconds > 0)
+	if (seconds >= 0)
 		love::sleep((unsigned int)(seconds*1000));
 		love::sleep((unsigned int)(seconds*1000));
 }
 }