mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-23 19:16:21 +00:00
patch #689164 comi verb coin hack by erik, fixes the verb coin drawing behind the inventory
svn-id: r6642
This commit is contained in:
parent
686ba621f7
commit
af19cac738
@ -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)
|
||||
|
@ -673,6 +673,7 @@ public:
|
||||
void setActorRedrawFlags(bool fg, bool bg);
|
||||
void resetActorBgs();
|
||||
void processActors();
|
||||
void processUpperActors();
|
||||
int getActorFromPos(int x, int y);
|
||||
void actorFollowCamera(int act);
|
||||
|
||||
|
@ -562,6 +562,8 @@ int Scumm::scummLoop(int delta)
|
||||
}
|
||||
|
||||
drawBlastObjects();
|
||||
if (_features & GF_AFTER_V8)
|
||||
processUpperActors();
|
||||
drawBlastTexts();
|
||||
drawDirtyScreenParts();
|
||||
removeBlastObjects();
|
||||
|
Loading…
x
Reference in New Issue
Block a user