SAM: Experimental object-layering fix
|Sam and Max
I don't understand this patch. There! I've said it.
However, it's neat enough that I still think it's likely to be the correct fix for the object-layering bug in Sam & Max. For those who don't know, this is the bug that causes actors to be drawn over conversation icons, and which would cause them to be drawn over the inventory box if it wasn't for a hack in actor.cpp.
One place where this would happen is when talking to the fisherman at the World of Fish.
What it does is simply to change the part of drawObject() that used to set the dbDrawMaskOnBoth flag on class 22 objects for GF_AFTER_V7 games so that it will do the same thing also for Sam & Max. As I said, I don't really understand it. But it does work.
Well, almost. You'll still get layering problems outside the Mystery Vortex. But those objects are drawn with drawBomp(), so it's really a completely different bug that just happens to look the same. For all I know, it might even match the original behaviour.
Ticket imported from: #613597. Ticket imported from: patches/167.