Fix slow-motion alternate speeds

This commit is contained in:
Henrik Rydgard committed 2013-08-18 22:40:42 +02:00
1 parent a2781e4104
commit a48e1de2d4
1 file changed
+2 -3
+2 -3
View File
@@ -353,10 +353,9 @@ void DoFrameTiming(bool &throttle, bool &skipFrame, float timestep) {
skipFrame = true;
}
if (curFrameTime < nextFrameTime && throttle)
{
if (curFrameTime < nextFrameTime && throttle) {
// If time gap is huge just jump (somebody unthrottled)
if (nextFrameTime - curFrameTime > 2*timestep) {
if ((nextFrameTime - curFrameTime > 2*timestep) && fpsLimiter == FPS_LIMIT_NORMAL) {
nextFrameTime = curFrameTime + timestep;
} else {
// Wait until we've caught up.