aboutsummaryrefslogtreecommitdiff
path: root/script_v1.cpp
diff options
context:
space:
mode:
authorVincent Hamm2002-04-19 15:34:35 +0000
committerVincent Hamm2002-04-19 15:34:35 +0000
commit780aecab878aaf96944bf8591dfd4da87b442a63 (patch)
tree05a5a5d2ba9f920a964426a73e2928929e285f91 /script_v1.cpp
parent32d213bc1250ddb7dfff23be641961d26ebaa7b6 (diff)
downloadscummvm-rg350-780aecab878aaf96944bf8591dfd4da87b442a63.tar.gz
scummvm-rg350-780aecab878aaf96944bf8591dfd4da87b442a63.tar.bz2
scummvm-rg350-780aecab878aaf96944bf8591dfd4da87b442a63.zip
Fixed indy3 when going to Venice. Fixed missing objects in Zak intro.
svn-id: r4012
Diffstat (limited to 'script_v1.cpp')
-rw-r--r--script_v1.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/script_v1.cpp b/script_v1.cpp
index 2523f147e0..b113eab93c 100644
--- a/script_v1.cpp
+++ b/script_v1.cpp
@@ -1074,7 +1074,7 @@ void Scumm::o5_drawObject()
if (_features & GF_SMALL_HEADER) {
int temp = getVarOrDirectWord(0x40);
- getVarOrDirectWord(0x20); // Room
+ int temp2= getVarOrDirectWord(0x20); // Room
idx = getObjectIndex(obj);
if (idx == -1)
@@ -1082,11 +1082,10 @@ void Scumm::o5_drawObject()
od = &_objs[idx];
xpos = ypos = 255;
if (temp != 0xFF) {
- od->walk_x += (xpos << 3) - od->x_pos;
- od->x_pos = xpos << 3;
- od->walk_y += (ypos << 3) - od->y_pos;
- od->y_pos = ypos << 3;
+ od->x_pos = temp<<3;
+ od->y_pos = temp2<<3;
}
+
addObjectToDrawQue(idx);
x = od->x_pos;
@@ -1881,7 +1880,7 @@ void Scumm::o5_roomOps()
if (_features & GF_OLD256) {
a = getVarOrDirectByte(0x80);
b = getVarOrDirectByte(0x40);
- if (_gameId == GID_INDY3_256 && a == 16 && b == 0) { /* FIXME */
+ if (_gameId == GID_INDY3_256 && (a == 0 || a ==16) && b == 0) { /* FIXME */
// Set screen height
c = fetchScriptByte();
d = fetchScriptByte();