aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo/object_v2d.cpp
diff options
context:
space:
mode:
authorArnaud Boutonné2010-11-01 15:29:06 +0000
committerArnaud Boutonné2010-11-01 15:29:06 +0000
commit4c6eb76d79a958bd6901908b3a002cc71cfc4949 (patch)
treef2a4f208e38a09148e651198e64b61ec2fc6de07 /engines/hugo/object_v2d.cpp
parentfc0adb846a4aa5de82de475c1ba2270f2210f767 (diff)
downloadscummvm-rg350-4c6eb76d79a958bd6901908b3a002cc71cfc4949.tar.gz
scummvm-rg350-4c6eb76d79a958bd6901908b3a002cc71cfc4949.tar.bz2
scummvm-rg350-4c6eb76d79a958bd6901908b3a002cc71cfc4949.zip
HUGO: Make some scheduler functions and variables protected
svn-id: r53999
Diffstat (limited to 'engines/hugo/object_v2d.cpp')
-rw-r--r--engines/hugo/object_v2d.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/engines/hugo/object_v2d.cpp b/engines/hugo/object_v2d.cpp
index eb840c290b..2915eb6bf0 100644
--- a/engines/hugo/object_v2d.cpp
+++ b/engines/hugo/object_v2d.cpp
@@ -345,8 +345,16 @@ void ObjectHandler_v2d::moveObjects() {
}
// If maze mode is enabled, do special maze processing
- if (_maze.enabledFl)
- _vm->_scheduler->processMaze();
+ if (_maze.enabledFl) {
+ seq_t *currImage = _vm->_hero->currImagePtr; // Get ptr to current image
+ // hero coordinates
+ int x1 = _vm->_hero->x + currImage->x1; // Left edge of object
+ int x2 = _vm->_hero->x + currImage->x2; // Right edge
+ int y1 = _vm->_hero->y + currImage->y1; // Top edge
+ int y2 = _vm->_hero->y + currImage->y2; // Bottom edge
+
+ _vm->_scheduler->processMaze(x1, x2, y1, y2);
+ }
}
} // End of namespace Hugo