Skip to content

Commit

Permalink
PEGASUS: Make the nav movie rely on the current time zone instead of …
Browse files Browse the repository at this point in the history
…hardcoding it
  • Loading branch information
Matthew Hoops committed May 11, 2011
1 parent 9cb6000 commit 6cfdd25
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions engines/pegasus/pegasus.cpp
Expand Up @@ -185,10 +185,16 @@ void PegasusEngine::mainGameLoop() {
_system->fillScreen(0);
_video->playMovieCentered("Images/Caldoria/Pullback.movie");
drawInterface();
if (isDemo())
_video->playMovie("Images/Prehistoric/Prehistoric.movie", kViewScreenOffset, kViewScreenOffset);

Common::String navMovieFolder;
if (_timeZone == kLocTinyTSA || _timeZone == kLocFullTSA)
navMovieFolder = "TSA";
else
_video->playMovie("Images/Caldoria/Caldoria.movie", kViewScreenOffset, kViewScreenOffset);
navMovieFolder = getTimeZoneDesc(_timeZone);

Common::String navMovie = Common::String::format("Images/%s/%s.movie", navMovieFolder.c_str(), getTimeZoneDesc(_timeZone).c_str());
_video->playMovie(navMovie, kViewScreenOffset, kViewScreenOffset);

_gameMode = kQuitMode;
}

Expand Down

0 comments on commit 6cfdd25

Please sign in to comment.