Skip to content

Commit

Permalink
PEGASUS: Reset _lastMillis when changing rate in the timer
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Hoops committed Jan 30, 2013
1 parent e37be9f commit b50cac6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions engines/pegasus/timers.cpp
Expand Up @@ -93,6 +93,7 @@ TimeValue TimeBase::getTime(const TimeScale scale) {

void TimeBase::setRate(const Common::Rational rate) {
_rate = rate;
_lastMillis = 0;

if (_rate == 0)
_paused = false;
Expand Down

0 comments on commit b50cac6

Please sign in to comment.