mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-22 01:57:16 +00:00
PEGASUS: Fix going left initially in the globe game
This commit is contained in:
parent
d6d3c6a13c
commit
94fd3809bf
@ -64,6 +64,10 @@ void GlobeTracker::setTrackParameters(const Hotspot *trackSpot, GlobeTrackDirect
|
||||
|
||||
_globeMovie->setSegment(start, start + kDurationPerRow);
|
||||
|
||||
// Clip new time so we don't go past the end of the segment
|
||||
if (newTime >= start + kDurationPerRow)
|
||||
newTime = start + kDurationPerRow - 1;
|
||||
|
||||
if (newTime != time) {
|
||||
_globeMovie->setTime(newTime);
|
||||
_globeMovie->redrawMovieWorld();
|
||||
@ -84,6 +88,10 @@ void GlobeTracker::setTrackParameters(const Hotspot *trackSpot, GlobeTrackDirect
|
||||
|
||||
_globeMovie->setSegment(start, start + kDurationPerRow);
|
||||
|
||||
// Clip new time so we don't go past the end of the segment
|
||||
if (newTime >= start + kDurationPerRow)
|
||||
newTime = start + kDurationPerRow - 1;
|
||||
|
||||
if (newTime != time) {
|
||||
_globeMovie->setTime(newTime);
|
||||
_globeMovie->redrawMovieWorld();
|
||||
|
Loading…
x
Reference in New Issue
Block a user