mirror of
https://github.com/love2d/love.git
synced 2026-08-12 16:40:57 +02:00
Allow love.timer.sleep(0).
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user