diff options
author | Matthew Hoops | 2011-09-20 13:28:41 -0400 |
---|---|---|
committer | Matthew Hoops | 2011-09-20 13:28:41 -0400 |
commit | 1c8213ad86b8cdda01785b4c7ec41376e46e0f7e (patch) | |
tree | c66a60ac062aeae665fbb99f6a3e4c1efb1dfcc2 /engines/pegasus | |
parent | 0193d0d01948a0b2b24967be036fbcddfccc7fd6 (diff) | |
download | scummvm-rg350-1c8213ad86b8cdda01785b4c7ec41376e46e0f7e.tar.gz scummvm-rg350-1c8213ad86b8cdda01785b4c7ec41376e46e0f7e.tar.bz2 scummvm-rg350-1c8213ad86b8cdda01785b4c7ec41376e46e0f7e.zip |
PEGASUS: Fix timebase looping
Diffstat (limited to 'engines/pegasus')
-rwxr-xr-x | engines/pegasus/timers.cpp | 4 |
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); } } |