From 94fd3809bf57ca9f4cd054dcbb06364fbee53151 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Sun, 12 May 2013 19:42:32 -0400 Subject: PEGASUS: Fix going left initially in the globe game --- engines/pegasus/neighborhood/norad/delta/globegame.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'engines') diff --git a/engines/pegasus/neighborhood/norad/delta/globegame.cpp b/engines/pegasus/neighborhood/norad/delta/globegame.cpp index 35ec9b813d..1416c51c8d 100644 --- a/engines/pegasus/neighborhood/norad/delta/globegame.cpp +++ b/engines/pegasus/neighborhood/norad/delta/globegame.cpp @@ -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(); -- cgit v1.2.3