From 1c8213ad86b8cdda01785b4c7ec41376e46e0f7e Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Tue, 20 Sep 2011 13:28:41 -0400 Subject: PEGASUS: Fix timebase looping --- engines/pegasus/timers.cpp | 4 ++-- 1 file 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); } } -- cgit v1.2.3