residualvm/residualvm — pull request #858 by JoseJX (2014-04-06 03:18:33+00:00)
Title: EMI: Allow actors to be hidden by a call to set_wear_chore(nil).

In EMI, actors are hidden by a call to set_wear_chore(nil). An early example of this is when Guybrush eats the pretzels in the SCUMM bar. It appears that the original engine stops the actor's wearChore as well when StopActorChores() is called, but ResidualVM wasn't doing that.

This code adds a new private variable to keep track of whether the wearChore is visible. When the wearChore is not visible, the draw() command is bypassed.