소스 검색

Allow love.timer.sleep(0).

Alex Szpakowski 6 년 전
부모
커밋
b439ff07ce
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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));
 }
 }