aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2003-06-06 10:01:26 +0000
committerTorbjörn Andersson2003-06-06 10:01:26 +0000
commit560c03f6ab658122fae30a86494d988538c87ce2 (patch)
tree6efc92440a26c0a6f250bf13f068ebd90d19acee
parent620762b46626593fe768aa7a4ca2c1f2b0a84d78 (diff)
downloadscummvm-rg350-560c03f6ab658122fae30a86494d988538c87ce2.tar.gz
scummvm-rg350-560c03f6ab658122fae30a86494d988538c87ce2.tar.bz2
scummvm-rg350-560c03f6ab658122fae30a86494d988538c87ce2.zip
Hack to fix the placement of the green transparency on the tank in the Hall
of Oddities in Sam & Max. As far as I can tell, this was a bug in the original game as well, so this is one of the rare cases where I think a hack is ok even as a long-term solution. svn-id: r8347
-rw-r--r--scumm/actor.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/scumm/actor.cpp b/scumm/actor.cpp
index 3bf808aacf..da008fde61 100644
--- a/scumm/actor.cpp
+++ b/scumm/actor.cpp
@@ -562,6 +562,13 @@ void Actor::putActor(int dstX, int dstY, byte newRoom) {
_vm->clearMsgQueue();
}
+ // HACK: The green transparency of the tank in the Hall of Oddities is
+ // is positioned one pixel too far to the left. This appears to be a
+ // bug in the original game as well.
+
+ if (_vm->_gameId == GID_SAMNMAX && newRoom == 16 && number == 5 && dstX == 235 && dstY == 236)
+ dstX++;
+
x = dstX;
y = dstY;
room = newRoom;