Objects with their vis_flags set to values such as "VIS_INHERIT_DIR" or "VIS_INHERIT_ICON_STATE" won't fallback to their icon_state when no matching dir/state is in the parent icon, it'll simply be blank.
Numbered Steps to Reproduce Problem:
1) Set vis_flags on an object to "VIS_INHERIT_DIR|VIS_INHERIT_ICON_STATE" (what I tried)
2) Add said object to a mob's vis_contents.
3) If the object matches the state/dir visually, it works.
4) If not, it's not visible.
Code Snippet (if applicable) to Reproduce Problem:
var/obj/visual = new()
visual.vis_flags = VIS_INHERIT_DIR|VIS_INHERIT_ICON_STATE
src.vis_contents += visual
Expected Results:
The same behavior as an overlay where it'll fallback to its default state or current icon_state when it can't match with the parent icon.
Actual Results:
No visual at all.
Does the problem occur:
Every time? Or how often? Every time.
In other games? ?
In other user accounts? Yep
On other computers? Yep
When does the problem NOT occur?
New stuff, new bugs.
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.)
Workarounds:
You could make your icon 100% match, but that gets ugly.