aboutsummaryrefslogtreecommitdiff
path: root/scumm/object.cpp
diff options
context:
space:
mode:
authorTravis Howell2005-10-13 15:02:21 +0000
committerTravis Howell2005-10-13 15:02:21 +0000
commit9895a020326c91971373b7d3c649bc6e245e8559 (patch)
treecf9e89699fb3bea017d3a17eeda3307789555f0a /scumm/object.cpp
parentd1ee537c5966b8572efc6161ed8c0a9b1ffb4a2b (diff)
downloadscummvm-rg350-9895a020326c91971373b7d3c649bc6e245e8559.tar.gz
scummvm-rg350-9895a020326c91971373b7d3c649bc6e245e8559.tar.bz2
scummvm-rg350-9895a020326c91971373b7d3c649bc6e245e8559.zip
Objects were not been swapped in HE games.
svn-id: r19061
Diffstat (limited to 'scumm/object.cpp')
-rw-r--r--scumm/object.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/scumm/object.cpp b/scumm/object.cpp
index 949541414e..ee15d6adab 100644
--- a/scumm/object.cpp
+++ b/scumm/object.cpp
@@ -394,11 +394,7 @@ void ScummEngine::drawRoomObjects(int arg) {
if (_objs[i].obj_nr > 0 && (_objs[i].state & mask) && _objs[i].fl_object_index == 0)
drawRoomObject(i, arg);
}
- // HACK: Reverse order is required to draw inventory background and items
- // in correct order in putttime/puttzoo. Otherwise the inventory background
- // is drawn over the items. But this doesn't match original, maybe masking
- // issue somewhere?
- for (i = 1; i < _numLocalObjects; i++) {
+ for (i = (_numLocalObjects-1); i > 0; i--) {
if (_objs[i].obj_nr > 0 && (_objs[i].state & mask) && _objs[i].fl_object_index != 0)
drawRoomObject(i, arg);
}