aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMartin Kiewitz2010-08-01 09:20:21 +0000
committerMartin Kiewitz2010-08-01 09:20:21 +0000
commit68f7b9be4c415186e2aebd749f978f31c0661ead (patch)
tree5f7474feb1c22b56544b2963a2d11bbe2b4ac882 /engines
parent0db8427f46674f8a835e606aa01eef4b50bf0f22 (diff)
downloadscummvm-rg350-68f7b9be4c415186e2aebd749f978f31c0661ead.tar.gz
scummvm-rg350-68f7b9be4c415186e2aebd749f978f31c0661ead.tar.bz2
scummvm-rg350-68f7b9be4c415186e2aebd749f978f31c0661ead.zip
SCI: reading the actual priority instead of guessing
svn-id: r51569
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/graphics/frameout.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/sci/graphics/frameout.cpp b/engines/sci/graphics/frameout.cpp
index 3db0017dfa..b8d50e77ce 100644
--- a/engines/sci/graphics/frameout.cpp
+++ b/engines/sci/graphics/frameout.cpp
@@ -68,9 +68,7 @@ void GfxFrameout::kernelAddPlane(reg_t object) {
newPlane.object = object;
newPlane.pictureId = 0xFFFF;
- // TODO/FIXME: Check whether we should really default initialize the
- // priority to 0xFFFF here.
- newPlane.priority = 0xFFFF;
+ newPlane.priority = readSelectorValue(_segMan, object, SELECTOR(priority));
newPlane.lastPriority = 0xFFFF; // hidden
_planes.push_back(newPlane);