diff options
author | Colin Snover | 2017-01-16 12:04:52 -0600 |
---|---|---|
committer | Colin Snover | 2017-01-16 12:16:14 -0600 |
commit | d9de55b2a98fb86eeb419d860b617240da02b72f (patch) | |
tree | 3f1cfffda3fd2c50e039b06739830cc054201b41 /engines | |
parent | f66c033d526e39547e2ceb3d28ccaf24efaf060e (diff) | |
download | scummvm-rg350-d9de55b2a98fb86eeb419d860b617240da02b72f.tar.gz scummvm-rg350-d9de55b2a98fb86eeb419d860b617240da02b72f.tar.bz2 scummvm-rg350-d9de55b2a98fb86eeb419d860b617240da02b72f.zip |
SCI32: Fix handling of negative z-indexes
Fixes the ego disappearing behind the castle doors in MGDX.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/graphics/screen_item32.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/graphics/screen_item32.cpp b/engines/sci/graphics/screen_item32.cpp index 4757770dc0..c07e07538e 100644 --- a/engines/sci/graphics/screen_item32.cpp +++ b/engines/sci/graphics/screen_item32.cpp @@ -236,7 +236,7 @@ void ScreenItem::setFromObject(SegManager *segMan, const reg_t object, const boo writeSelectorValue(segMan, object, SELECTOR(priority), _position.y); } - _z = readSelectorValue(segMan, object, SELECTOR(z)); + _z = (int16)readSelectorValue(segMan, object, SELECTOR(z)); _position.y -= _z; if (g_sci->_features->usesAlternateSelectors()) { |