aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rwxr-xr-xengines/pegasus/timers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/pegasus/timers.cpp b/engines/pegasus/timers.cpp
index b462e42cc3..b3dd3cf721 100755
--- a/engines/pegasus/timers.cpp
+++ b/engines/pegasus/timers.cpp
@@ -243,9 +243,9 @@ void TimeBase::checkCallBacks() {
// Loop if necessary
if (getFlags() & kLoopTimeBase) {
- if (time == startTime)
+ if (getRate() < 0 && time == startTime)
setTime(_stopTime, _stopScale);
- else if (time == stopTime)
+ else if (getRate() > 0 && time == stopTime)
setTime(_startTime, _startScale);
}
}