Skip to content

Commit

Permalink
PEGASUS: Fix timebase looping
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Hoops committed Sep 20, 2011
1 parent 0193d0d commit 1c8213a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/pegasus/timers.cpp
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 1c8213a

Please sign in to comment.