When I add an obj that also has overlays to my overlays or vis_contents, if it has layer = 5, it's appeareance layers get mixed, having the icon appear above the overlays. As in the picture:
https://prnt.sc/q1tlg5
Numbered Steps to Reproduce Problem:
1 - Create an obj
2 - Set an icon and overlays to it
3 - Set it's layer to 5
4 - Add it to your mob's overlay or vis_contents lsit
Code Snippet (if applicable) to Reproduce Problem:
atom/var/tmp/reflection
mob/verb/CreateReflection()
var/reflection/RF = new
RF.icon=src.icon
RF.overlays=src.overlays.Copy()
src.reflection=RF
src.overlays+=src.reflection//can also be vis_contents
reflection
layer=5//all other values below this can be removed and the issue will still persist
parent_type = /obj
density = 0
mouse_opacity = 0
appearance_flags = KEEP_TOGETHER | KEEP_APART | PIXEL_SCALE | LONG_GLIDE
alpha = 192
pixel_y=-40
Expected Results:
The obj's appeareance layering stays intact
Actual Results:
Icon gets above overlays
Does the problem occur:
Every time? Or how often? Yes
In other games? Yes
In other user accounts? Yes
On other computers? Yes
When does the problem NOT occur? Never
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.) Can't test right now.
Workarounds:
Setting other value to the layer