mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
love.timer.step now returns the calculated dt directly.
--HG-- branch : minor
This commit is contained in:
@@ -61,7 +61,7 @@ Timer::Timer()
|
||||
prevFpsUpdate = currTime = getTime();
|
||||
}
|
||||
|
||||
void Timer::step()
|
||||
double Timer::step()
|
||||
{
|
||||
// Frames rendered
|
||||
frames++;
|
||||
@@ -84,6 +84,8 @@ void Timer::step()
|
||||
prevFpsUpdate = currTime;
|
||||
frames = 0;
|
||||
}
|
||||
|
||||
return dt;
|
||||
}
|
||||
|
||||
void Timer::sleep(double seconds) const
|
||||
|
||||
Reference in New Issue
Block a user