aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2018-04-20 19:36:01 -0400
committerPaul Gilbert2018-04-20 19:36:01 -0400
commit63ebadaf27d55719e5975bbc20152cdbfcad6e6b (patch)
tree97996af2ab5054bd7adb4ff3b39f3a38767cbb07
parent2d62b8efeb03dbf39f154163db934d7e9c1a8de8 (diff)
downloadscummvm-rg350-63ebadaf27d55719e5975bbc20152cdbfcad6e6b.tar.gz
scummvm-rg350-63ebadaf27d55719e5975bbc20152cdbfcad6e6b.tar.bz2
scummvm-rg350-63ebadaf27d55719e5975bbc20152cdbfcad6e6b.zip
XEEN: Add town entry handling for Swords
-rw-r--r--engines/xeen/locations.cpp25
1 files changed, 24 insertions, 1 deletions
diff --git a/engines/xeen/locations.cpp b/engines/xeen/locations.cpp
index e2359df69c..a58ea23a5e 100644
--- a/engines/xeen/locations.cpp
+++ b/engines/xeen/locations.cpp
@@ -1965,7 +1965,30 @@ exit:
void DwarfCutscene::getNewLocation() {
Party &party = *g_vm->_party;
- if (_ccNum) {
+ if (g_vm->getGameID() == GType_Swords) {
+ switch (party._mazeId) {
+ case 1:
+ if (party._questItems[0]) {
+ _mazeId = 53;
+ _mazePos = Common::Point(8, 1);
+ _mazeDir = DIR_NORTH;
+ _keyFound = true;
+ }
+ break;
+
+ case 7:
+ if (party._questItems[1]) {
+ _mazeId = 92;
+ _mazePos = Common::Point(8, 1);
+ _mazeDir = DIR_NORTH;
+ _keyFound = true;
+ }
+ break;
+
+ default:
+ break;
+ }
+ } else if (_ccNum) {
switch (party._mazeId) {
case 4:
if (party._questItems[35]) {