[Scummvm-git-logs] scummvm master -> 19f55596204482021d5d54573b0613e01af56c6d

dreammaster paulfgilbert at gmail.com
Sat Sep 12 23:38:24 UTC 2020


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:
19f5559620 XEEN: Fix mirror destination for Dragon Tower


Commit: 19f55596204482021d5d54573b0613e01af56c6d
    https://github.com/scummvm/scummvm/commit/19f55596204482021d5d54573b0613e01af56c6d
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2020-09-12T16:38:13-07:00

Commit Message:
XEEN: Fix mirror destination for Dragon Tower

Changed paths:
    NEWS.md
    engines/xeen/scripts.cpp


diff --git a/NEWS.md b/NEWS.md
index b0c19d2880..2275be29e8 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -126,6 +126,7 @@ For a more comprehensive changelog of the latest experimental code, see:
    - Fix curing the well in Nightshadow.
    - Fix loading of wall items from savegames.
    - Fix U/D keys not working on Quests dialog
+   - Fix incorrect mirror destination for Dragon Tower
 
  ZVision:
    - Fixed regression in the safe puzzle in Zork Nemesis: The Forbidden Lands.
diff --git a/engines/xeen/scripts.cpp b/engines/xeen/scripts.cpp
index 4b172bdd86..3794c1ce40 100644
--- a/engines/xeen/scripts.cpp
+++ b/engines/xeen/scripts.cpp
@@ -493,13 +493,21 @@ bool Scripts::cmdTeleport(ParamsIterator &params) {
 		// Mirror teleportation
 		assert(_mirrorId > 0);
 		MirrorEntry &me = _mirror[_mirrorId - 1];
-		mapId = me._mapId;
-		pt = me._position;
-		if (me._direction != -1)
-			party._mazeDirection = (Direction)me._direction;
 
-		if (pt.x == 0 && pt.y == 0)
-			pt.x = 999;
+		// WORKAROUND: Wrong destination for Dragon Tower in Clouds
+		if (me._name == "dragon tower") {
+			mapId = 13;
+			pt = Common::Point(10, 5);
+			party._mazeDirection = DIR_SOUTH;
+		} else {
+			mapId = me._mapId;
+			pt = me._position;
+			if (me._direction != -1)
+				party._mazeDirection = (Direction)me._direction;
+
+			if (pt.x == 0 && pt.y == 0)
+				pt.x = 999;
+		}
 
 		sound.playFX(51);
 	}




More information about the Scummvm-git-logs mailing list