image() loses layer attribute.
|
|
Resolved
When image() was called with an icon state as the second argument instead of a loc, and this was followed by named arguments (e.g., image('icon.dmi', "state", layer=5)), the named arguments were replaced by garbage data.
|
BYOND Version: | 485 |
Operating System: | Windows XP Home |
Web Browser: | Firefox 4.0.1 |
Applies to: | Dream Seeker |
|
Status: |
Resolved (486)
This issue has been resolved.
|
|
|
Descriptive Problem Summary:
It seems image() loses its layer attribute.
Code Snippet (if applicable) to Reproduce Problem:
var/image/I=image('icon.dmi',"icon_state",layer=5) world<<I.layer
Expected Results:
It should output 5.
Actual Results:
It outputs -1.
When does the problem NOT occur?
That snippet seems to output the correct layer when not defining an icon.
Workarounds:
var/image/I=image('icon.dmi',"icon_state") I.layer=5 world<<I.layer
|
or