ID:1381145
 
Resolved
Mobs, and images attached to them, didn't keep the same micro-layering behavior they had in previous versions, even though other atom types did.
BYOND Version:500.1209
Operating System:Windows 7 Home Premium 64-bit
Web Browser:N/A
Applies to:Dream Seeker
Status: Resolved (500.1210)

This issue has been resolved.
Descriptive Problem Summary:

Code Snippet (if applicable) to Reproduce Problem:
Here's a tiny demo to see this in action: http://www.quiktech.org/image_bug.zip

In the demo you'll want to walk northeast to the little building that you'll see. You'll first notice that the little yellow icon is visible on top of the building. Now, stand next to the building on the left and walk north. Notice that the icon will disappear if you walk north of it. Moving south again will cause it to reappear.

[edit]
Appears as though this is an issue with layering.

Expected Results:
Yellow icon should only be visible when moving into the building.

Actual Results:
Yellow icon is visible on top of building if you are situated lower than the icon.

Does the problem occur:
Every time? Or how often?
Every time. It's easily reproducible in the demo.


Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)

This is working as expected in 499.1204. The yellow icon is not visible at any time you are outside of the building.

Workarounds:
Lowering the layer of the /image produces the correct behavior.
I found the issue; there is a bug in the layer code for mobs that was not carrying over the "micro layer" we've used for a long time. This impacted mobs (and their attached images) only.

Although this is definitely a bug, in that the micro-layering behavior wasn't intended to change in 500, it's largely arbitrary and should not be relied on when you want objects to respect a clear layering order. The roof should be on a higher layer than the torch. Setting the torch to the same layer as the roof introduces ambiguity, which 499 was compensating for.
Lummox JR resolved issue with message:
Mobs, and images attached to them, didn't keep the same micro-layering behavior they had in previous versions, even though other atom types did.