aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorRobert Crossfield2014-11-22 10:21:32 +1100
committerRobert Crossfield2014-11-23 08:24:39 +1100
commitdaefdc315bdcb8a62f6e69d45a1f0b535fff46d5 (patch)
tree8764aee0a6a14bf2493248024c8db49d976fbc5c /engines/scumm
parentf94f48ae2bdd3ad596c6bdf6a9875461079d4a7b (diff)
downloadscummvm-rg350-daefdc315bdcb8a62f6e69d45a1f0b535fff46d5.tar.gz
scummvm-rg350-daefdc315bdcb8a62f6e69d45a1f0b535fff46d5.tar.bz2
scummvm-rg350-daefdc315bdcb8a62f6e69d45a1f0b535fff46d5.zip
SCUMM: Fix bug #2034 - MANIAC V2: Early Collision with Green Tentacle
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/script_v0.cpp6
-rw-r--r--engines/scumm/script_v2.cpp9
2 files changed, 11 insertions, 4 deletions
diff --git a/engines/scumm/script_v0.cpp b/engines/scumm/script_v0.cpp
index a7999a2695..af39fdaad8 100644
--- a/engines/scumm/script_v0.cpp
+++ b/engines/scumm/script_v0.cpp
@@ -589,9 +589,9 @@ void ScummEngine_v0::o_loadRoomWithEgo() {
return;
}
- // The original interpreter seems to set the actors new room X/Y to the last rooms X/Y
- // This fixes a problem with MM: script 158 in room 12, the 'Oompf!' script
- // This scripts runs before the actor position is set to the correct location
+ // The original interpreter sets the actors new room X/Y to the last rooms X/Y
+ // This fixes a problem with MM: script 158 in room 12, the 'Oomph!' script
+ // This scripts runs before the actor position is set to the correct room entry location
a->putActor(a->getPos().x, a->getPos().y, room);
_egoPositioned = false;
diff --git a/engines/scumm/script_v2.cpp b/engines/scumm/script_v2.cpp
index 74d0aa2483..a7ec2e644f 100644
--- a/engines/scumm/script_v2.cpp
+++ b/engines/scumm/script_v2.cpp
@@ -1390,7 +1390,14 @@ void ScummEngine_v2::o2_loadRoomWithEgo() {
a = derefActor(VAR(VAR_EGO), "o2_loadRoomWithEgo");
- a->putActor(0, 0, room);
+ // The original interpreter sets the actors new room X/Y to the last rooms X/Y
+ // This fixes a problem with MM: script 161 in room 12, the 'Oomph!' script
+ // This scripts runs before the actor position is set to the correct room entry location
+ if ((_game.id == GID_MANIAC) && (_game.platform != Common::kPlatformNES)) {
+ a->putActor(a->getPos().x, a->getPos().y, room);
+ } else {
+ a->putActor(0, 0, room);
+ }
_egoPositioned = false;
x = (int8)fetchScriptByte();