Skip to content
Permalink
Browse files

XEEN: Fix game header lines in Quests dialog for Swords

  • Loading branch information
dreammaster committed Apr 20, 2018
1 parent bfebb9d commit bd69f99f8b7ab27f6ca7df9a699fe800e8e5c6f8
Showing with 7 additions and 8 deletions.
  1. +7 −8 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;
}

0 comments on commit bd69f99

Please sign in to comment.
You can’t perform that action at this time.