[Scummvm-git-logs] scummvm master -> bd69f99f8b7ab27f6ca7df9a699fe800e8e5c6f8

dreammaster dreammaster at scummvm.org
Fri Apr 20 02:43:37 CEST 2018


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
bd69f99f8b XEEN: Fix game header lines in Quests dialog for Swords


Commit: bd69f99f8b7ab27f6ca7df9a699fe800e8e5c6f8
    https://github.com/scummvm/scummvm/commit/bd69f99f8b7ab27f6ca7df9a699fe800e8e5c6f8
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2018-04-19T20:43:31-04:00

Commit Message:
XEEN: Fix game header lines in Quests dialog for Swords

Changed paths:
    engines/xeen/dialogs/dialogs_quests.cpp


diff --git a/engines/xeen/dialogs/dialogs_quests.cpp b/engines/xeen/dialogs/dialogs_quests.cpp
index 1c91af2..84c3cd1 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;
 					}





More information about the Scummvm-git-logs mailing list