From 63ebadaf27d55719e5975bbc20152cdbfcad6e6b Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 20 Apr 2018 19:36:01 -0400 Subject: XEEN: Add town entry handling for Swords --- engines/xeen/locations.cpp | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) 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]) { -- cgit v1.2.3