aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMatthew Hoops2013-05-12 19:42:32 -0400
committerMatthew Hoops2013-05-12 19:42:32 -0400
commit94fd3809bf57ca9f4cd054dcbb06364fbee53151 (patch)
treef281b198c8ffdec5d87138c639180a63ce4720e2 /engines
parentd6d3c6a13c2c830029872040a76783d84166c238 (diff)
downloadscummvm-rg350-94fd3809bf57ca9f4cd054dcbb06364fbee53151.tar.gz
scummvm-rg350-94fd3809bf57ca9f4cd054dcbb06364fbee53151.tar.bz2
scummvm-rg350-94fd3809bf57ca9f4cd054dcbb06364fbee53151.zip
PEGASUS: Fix going left initially in the globe game
Diffstat (limited to 'engines')
-rw-r--r--engines/pegasus/neighborhood/norad/delta/globegame.cpp8
1 files changed, 8 insertions, 0 deletions
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();