aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2003-05-17 00:59:47 +0000
committerMax Horn2003-05-17 00:59:47 +0000
commit56d6443b1956151df2fb6e815221deb4d348c85b (patch)
treebc20650c09e1b7db44c1d52915b302a4f8ec194a /scumm
parent6ed1d415b5da1830ead0fa91760751b78893628a (diff)
downloadscummvm-rg350-56d6443b1956151df2fb6e815221deb4d348c85b.tar.gz
scummvm-rg350-56d6443b1956151df2fb6e815221deb4d348c85b.tar.bz2
scummvm-rg350-56d6443b1956151df2fb6e815221deb4d348c85b.zip
fixed object walk_x/walk_y for V2 games
svn-id: r7591
Diffstat (limited to 'scumm')
-rw-r--r--scumm/object.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/object.cpp b/scumm/object.cpp
index 60cca10d65..d4ca4eb2bf 100644
--- a/scumm/object.cpp
+++ b/scumm/object.cpp
@@ -654,8 +654,8 @@ void Scumm::setupRoomObject(ObjectData *od, byte *room, byte *searchptr) {
od->parent = *(ptr + 12);
if (_features & GF_AFTER_V2) {
- od->walk_x = *(ptr + 13);
- od->walk_y = *(ptr + 14);
+ od->walk_x = *(ptr + 13) * 8;
+ od->walk_y = *(ptr + 14) * 8;
od->actordir = (*(ptr + 15)) & 7;
od->height = *(ptr + 15) & 0xf8;
} else {