ID:2523995
 
BYOND Version:512
Operating System:Windows 10 Home 64-bit
Web Browser:Chrome 78.0.3904.97
Applies to:Dream Daemon
Status: Open

Issue hasn't been assigned a status value.
Descriptive Problem Summary:
There are two types over overlays - those that inherit dir from their parent, and those that don't. Usually, they can be distinguished by the fact that when the dir isn inherited, dir is 0. However, those two snippets produce overlays that are *completely identical* when looking at their vars, but one of them inherits dir, and the other one doesnt

icon = 'some_icon.dmi'
// This overlay inherits dir
overlays += "some_icon_state"
// this overlay doesn't inherit dir
overlays += image('some_icon.dmi', "some_icon_state", dir=2)

// both overlays have identical vars


Numbered Steps to Reproduce Problem:

Code Snippet (if applicable) to Reproduce Problem:


Expected Results:

Actual Results:

Does the problem occur:
Every time? Or how often?
In other games?
In other user accounts?
On other computers?

When does the problem NOT occur?

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:
Avoid using the += "some_icon_state" syntax when adding overlays

Not actually a bug; I've moved this to Feature Requests.

The difference between inheriting dir or not is an internal flag that gets set when you set the icon_state for an appearance.

Login to reply.