obj
carry_item
icon = 'items.dmi'
layer = FLOAT_LAYER
plane = FLOAT_PLANE
The left is when I add the object to the mob's vis_contents. The object layers under the player, when it should appear directly above it.
The right is when I add the same object to the mob's overlays. The object layers over the player, as it is expected that vis_contents should.
The bug only seems to affect objects with different visual bounds. As long as the two objects share the exact same icon size, there's no problem. But the minute you start using a smaller icon file on top of a larger one, the layering goes all out of whack.
test_vis_contents2() is the one that's bugged in the below demo:
http://files.byondhome.com/Ter13/visbug_src.zip