PEGASUS: Fix going left initially in the globe game

This commit is contained in:
Matthew Hoops 2013-05-12 19:42:32 -04:00
parent d6d3c6a13c
commit 94fd3809bf

View File

@ -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();