diff options
| author | Paul Gilbert | 2018-04-20 19:36:01 -0400 | 
|---|---|---|
| committer | Paul Gilbert | 2018-04-20 19:36:01 -0400 | 
| commit | 63ebadaf27d55719e5975bbc20152cdbfcad6e6b (patch) | |
| tree | 97996af2ab5054bd7adb4ff3b39f3a38767cbb07 | |
| parent | 2d62b8efeb03dbf39f154163db934d7e9c1a8de8 (diff) | |
| download | scummvm-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.cpp | 25 | 
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]) {  | 
