FT: Incorrect actor drawing order
|Reported by:||salty-horse||Owned by:||cyxx|
During the Corley murder sequence, Miranda is drawn behind Ripburger. She should be drawn in front of him. See included screenshots.
I am using current CVS, with the english talkie version B of the game, on Win32
Steps to reproduce: 1) Load FT with bootparam 400 2) Wait until you reach the room in the picture (room 33), where Miranda is struggling to get free.
Analysis: Looking at the room script for room 31, which directs the sequence:
 (9D) actorOps.setCurActor(6) [084E] (9D) actorOps.setCostume(0)
Miranda is actor 6. Since she has no costume, ScummEngine::processActors() in scumm/actor.cpp doesn't include her in the actor array, and doesn't sort the draw order. It's worthy to note that the "actors" debug command shows her data since she's in the room.
Her y-value is lower than Ripburger's.
Adding costume=0 actors to the array isn't so trivial because there are some costume functions called afterwards that assert on costume 0.
Ticket imported from: #1093867. Ticket imported from: bugs/1864.