diff options
author | Paul Gilbert | 2018-04-19 20:43:31 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-04-19 20:43:31 -0400 |
commit | bd69f99f8b7ab27f6ca7df9a699fe800e8e5c6f8 (patch) | |
tree | a71c88e5ae29e9a651f13cfd87b018656af1b04b /engines/xeen/dialogs/dialogs_quests.cpp | |
parent | bfebb9da4b426fd37b92a5da8f5c808aefe2c98b (diff) | |
download | scummvm-rg350-bd69f99f8b7ab27f6ca7df9a699fe800e8e5c6f8.tar.gz scummvm-rg350-bd69f99f8b7ab27f6ca7df9a699fe800e8e5c6f8.tar.bz2 scummvm-rg350-bd69f99f8b7ab27f6ca7df9a699fe800e8e5c6f8.zip |
XEEN: Fix game header lines in Quests dialog for Swords
Diffstat (limited to 'engines/xeen/dialogs/dialogs_quests.cpp')
-rw-r--r-- | engines/xeen/dialogs/dialogs_quests.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/engines/xeen/dialogs/dialogs_quests.cpp b/engines/xeen/dialogs/dialogs_quests.cpp index 1c91af2eba..84c3cd11da 100644 --- a/engines/xeen/dialogs/dialogs_quests.cpp +++ b/engines/xeen/dialogs/dialogs_quests.cpp @@ -76,13 +76,12 @@ void Quests::execute() { headerShown = false; for (int idx = 0; idx < itemsCount; ++idx) { if (party._questItems[idx]) { - if (!count && !headerShown) { + if (!count ) { if (_vm->getGameID() == GType_Swords) lines[count++] = Res.SWORDS_OF_XEEN_LINE; else if (idx < 35) - lines[count++] = title1; - } - if (idx >= 35 && !headerShown) { + lines[count++] = Res.CLOUDS_OF_XEEN_LINE; + } else if (_vm->getGameID() != GType_Swords && idx >= 35 && !headerShown) { lines[count++] = Res.DARKSIDE_OF_XEEN_LINE; headerShown = true; } @@ -138,10 +137,10 @@ void Quests::execute() { headerShown = false; for (int idx = 0; idx < TOTAL_QUEST_FLAGS; ++idx) { if (party._questFlags[(idx + 1) / 30][(idx + 1) % 30]) { - if (!count && !headerShown && idx < 29) { + if (!count && !headerShown && (_vm->getGameID() == GType_Swords || idx < 29)) { lines[count++] = title1; } - if (idx > 28 && !headerShown) { + if (_vm->getGameID() != GType_Swords && idx > 28 && !headerShown) { lines[count++] = Res.DARKSIDE_OF_XEEN_LINE; headerShown = true; } @@ -165,10 +164,10 @@ void Quests::execute() { headerShown = false; for (int idx = 0; idx < MAX_DIALOG_LINES; ++idx) { if (party._worldFlags[idx]) { - if (!count && !headerShown && idx < 72) { + if (!count && !headerShown && (_vm->getGameID() == GType_Swords || idx < 72)) { lines[count++] = title1; } - if (idx >= 72 && !headerShown) { + if (_vm->getGameID() != GType_Swords && idx >= 72 && !headerShown) { lines[count++] = Res.DARKSIDE_OF_XEEN_LINE; headerShown = true; } |