aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/dialogs
diff options
context:
space:
mode:
authorPaul Gilbert2018-04-19 21:42:38 -0400
committerPaul Gilbert2018-04-19 21:42:38 -0400
commit94793803106ff2a7e6366b35f223f11715045546 (patch)
treecf14598869fda7740b0427ce4d26b4a7d9728cb0 /engines/xeen/dialogs
parent8d577f491640d8c8589c4b73672c982a46d19089 (diff)
downloadscummvm-rg350-94793803106ff2a7e6366b35f223f11715045546.tar.gz
scummvm-rg350-94793803106ff2a7e6366b35f223f11715045546.tar.bz2
scummvm-rg350-94793803106ff2a7e6366b35f223f11715045546.zip
XEEN: Changes for Auto Notes for Swords
Diffstat (limited to 'engines/xeen/dialogs')
-rw-r--r--engines/xeen/dialogs/dialogs_quests.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/engines/xeen/dialogs/dialogs_quests.cpp b/engines/xeen/dialogs/dialogs_quests.cpp
index e0e9829fd9..31d0bdf8d3 100644
--- a/engines/xeen/dialogs/dialogs_quests.cpp
+++ b/engines/xeen/dialogs/dialogs_quests.cpp
@@ -156,23 +156,24 @@ void Quests::execute() {
lines[topRow].c_str(), lines[topRow + 1].c_str(), lines[topRow + 2].c_str()));
break;
- case AUTO_NOTES:
- for (int idx = 0; idx < MAX_DIALOG_LINES; ++idx)
+ case AUTO_NOTES: {
+ int count = _vm->getGameID() == GType_Swords ? 49 : MAX_DIALOG_LINES;
+ for (int idx = 0; idx < count; ++idx)
lines[idx] = "";
count = 0;
headerShown = false;
- for (int idx = 0; idx < MAX_DIALOG_LINES; ++idx) {
+ for (int idx = 0; idx < count; ++idx) {
if (party._worldFlags[idx]) {
if (!count && !headerShown && (_vm->getGameID() == GType_Swords || idx < 72)) {
lines[count++] = title1;
}
- if (_vm->getGameID() != GType_Swords && idx >= 72 && !headerShown) {
+ if (idx >= 72 && !headerShown) {
lines[count++] = Res.DARKSIDE_OF_XEEN_LINE;
headerShown = true;
}
- lines[count++] = _questNotes[idx + 56];
+ lines[count++] = _questNotes[idx + (_vm->getGameID() == GType_Swords ? 51 : 56)];
}
}
@@ -188,6 +189,7 @@ void Quests::execute() {
));
break;
}
+ }
windows[30].writeString("\v000\t000");
windows[24].update();