diff options
author | Jonathan Gray | 2003-02-27 10:17:29 +0000 |
---|---|---|
committer | Jonathan Gray | 2003-02-27 10:17:29 +0000 |
commit | af19cac73829f9a24aea694052e274b6dd2d146b (patch) | |
tree | bd0c152f61ba888f154df7dbe2365cfcfdb5ebc7 /scumm/actor.cpp | |
parent | 686ba621f72121849cd9a37db7b968957bde3235 (diff) | |
download | scummvm-rg350-af19cac73829f9a24aea694052e274b6dd2d146b.tar.gz scummvm-rg350-af19cac73829f9a24aea694052e274b6dd2d146b.tar.bz2 scummvm-rg350-af19cac73829f9a24aea694052e274b6dd2d146b.zip |
patch #689164 comi verb coin hack by erik, fixes the verb coin drawing behind the inventory
svn-id: r6642
Diffstat (limited to 'scumm/actor.cpp')
-rw-r--r-- | scumm/actor.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/scumm/actor.cpp b/scumm/actor.cpp index 9daa547bbd..e2ab510cf3 100644 --- a/scumm/actor.cpp +++ b/scumm/actor.cpp @@ -868,6 +868,8 @@ void Scumm::processActors() // Make a list of all actors in this room for (i = 1; i < NUM_ACTORS; i++) { a = derefActor(i); + if ((_features & GF_AFTER_V8) && a->layer < 0) + continue; if (a->isInCurrentRoom()) actors[numactors++] = a; } @@ -903,6 +905,23 @@ void Scumm::processActors() delete [] actors; } +// Used in Scumm v8, to allow the verb coin to be drawn over the inventory +// chest. I'm assuming that draw order won't matter here. +void Scumm::processUpperActors() +{ + Actor *a; + int i; + + for (i = 1; i < NUM_ACTORS; i++) { + a = derefActor(i); + if (a->isInCurrentRoom() && a->costume && a->layer < 0) { + CHECK_HEAP getMaskFromBox(a->walkbox); + a->drawActorCostume(); + CHECK_HEAP a->animateCostume(); + } + } +} + void Actor::drawActorCostume() { if (!needRedraw) |