aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb
diff options
context:
space:
mode:
authorEugene Sandulenko2019-08-23 12:11:07 +0200
committerEugene Sandulenko2019-09-03 17:17:35 +0200
commite5883e999b81a771d78c43fc69fe1249dfee0124 (patch)
treecb0e844c9435fb2add3f7bdacf352a6cbe5ac655 /engines/hdb
parent93f05fa32c1ad35b38441a52bc343fc2856af235 (diff)
downloadscummvm-rg350-e5883e999b81a771d78c43fc69fe1249dfee0124.tar.gz
scummvm-rg350-e5883e999b81a771d78c43fc69fe1249dfee0124.tar.bz2
scummvm-rg350-e5883e999b81a771d78c43fc69fe1249dfee0124.zip
HDB: Fix teleporter on MAP29 in PPC version.
It was fixed later in the Win version, as it was transferring Guy to a wrong level.
Diffstat (limited to 'engines/hdb')
-rw-r--r--engines/hdb/map.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/hdb/map.cpp b/engines/hdb/map.cpp
index aa8de262f6..e309b57333 100644
--- a/engines/hdb/map.cpp
+++ b/engines/hdb/map.cpp
@@ -748,6 +748,17 @@ bool Map::load(Common::SeekableReadStream *stream) {
case INFO_TELEPORTER18:
case INFO_TELEPORTER19:
case INFO_TELEPORTER20:
+
+ if (aiInfo[_iconList[i].icon].type == INFO_TELEPORTER8) {
+ if (g_hdb->isPPC() && !scumm_stricmp(g_hdb->currentMapName(), "MAP29.MSM")) {
+ if (_iconList[i].x == 45 && _iconList[i].y == 116) {
+ warning("PATCHED Teleporter8 in MAP29");
+
+ _iconList[i].level = 1;
+ }
+ }
+ }
+
g_hdb->_ai->addToTeleportList(
aiInfo[_iconList[i].icon].type - INFO_TELEPORTER1,
_iconList[i].x,