diff options
author | Nicola Mettifogo | 2007-08-12 13:54:01 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-08-12 13:54:01 +0000 |
commit | 12d9e7aed91d853903674bfc04e648d8ded086d0 (patch) | |
tree | d5744196f978ec714d8777b183d3cbe4fcf7f8ae | |
parent | a3e19078372f8ca062fa5504eaaa9d0edec5ca65 (diff) | |
download | scummvm-rg350-12d9e7aed91d853903674bfc04e648d8ded086d0.tar.gz scummvm-rg350-12d9e7aed91d853903674bfc04e648d8ded086d0.tar.bz2 scummvm-rg350-12d9e7aed91d853903674bfc04e648d8ded086d0.zip |
Added first location selection for each part.
svn-id: r28564
-rw-r--r-- | engines/parallaction/parallaction.h | 1 | ||||
-rw-r--r-- | engines/parallaction/parallaction_br.cpp | 25 |
2 files changed, 23 insertions, 3 deletions
diff --git a/engines/parallaction/parallaction.h b/engines/parallaction/parallaction.h index 6804143a51..6c040c9774 100644 --- a/engines/parallaction/parallaction.h +++ b/engines/parallaction/parallaction.h @@ -596,6 +596,7 @@ private: void initPart(); void freePart(); + void startPart(); void setMousePointer(int16 index); void initCursors(); diff --git a/engines/parallaction/parallaction_br.cpp b/engines/parallaction/parallaction_br.cpp index 9af3f49175..45dfbc134f 100644 --- a/engines/parallaction/parallaction_br.cpp +++ b/engines/parallaction/parallaction_br.cpp @@ -49,6 +49,14 @@ const char *partNames[] = { "PART4" }; +const char *partFirstLocation[] = { + "intro", + "museo", + "start", + "bolscoi", + "treno" +}; + int Parallaction_br::init() { // Detect game @@ -63,6 +71,7 @@ int Parallaction_br::init() { if (getGameType() == GType_BRA) { if (getPlatform() == Common::kPlatformPC) { _disk = new DosDisk_br(this); + _disk->setLanguage(2); // NOTE: language is now hardcoded to English. Original used command-line parameters. } else error("unsupported platform for Big Red Adventure"); } else @@ -124,7 +133,7 @@ int Parallaction_br::go() { default: _part = option; _disk->selectArchive(partNames[_part]); - initPart(); + startPart(); break; } @@ -277,10 +286,9 @@ int Parallaction_br::showMenu() { void Parallaction_br::initFonts() { - // TODO: find out which font is used for labels - _menuFont = _disk->loadFont("russia"); _dialogueFont = _disk->loadFont("comic"); + _labelFont = _menuFont; } @@ -327,5 +335,16 @@ void Parallaction_br::freePart() { } +void Parallaction_br::startPart() { + + initPart(); + + strcpy(_location._name, partFirstLocation[_part]); + + parseLocation("common"); + parseLocation(_location._name); + +} + } // namespace Parallaction |