ID:2080853
 
Resolved
initial(appearance_flags) did not return the correct value.
BYOND Version:510.1341
Operating System:Windows 10 Pro
Web Browser:Chrome 50.0.2661.94
Applies to:Dream Daemon
Status: Resolved (510.1342)

This issue has been resolved.
Descriptive Problem Summary:
When using initial on the appearance_flags variable, it will always return the value 0, regardless of the compile time value.

Code Snippet (if applicable) to Reproduce Problem:
world
fps = 25 // 25 frames per second
icon_size = 32 // 32x32 icon size by default

view = 6 // show up to 6 tiles outward from center (13x13 view)
maxx = 30
maxy = 30
loop_checks = 0

// Make objects move 8 pixels per tick when walking

mob
step_size = 8

obj
step_size = 8

/obj/thing
appearance_flags = NO_CLIENT_COLOR

client/verb/test_appearance_flags()
var/obj/thing/test = new()
world << "appearance flags using initial, [initial(test.appearance_flags)]"
world << "appearance flags of new'd object [test.appearance_flags]"


Expected Results:
In my test case both should return NO_CLIENT_COLOR (works the same with any other flag)

Actual Results:
Initial returns 0, the new'd object has NO_CLIENT_COLOR

Does the problem occur:
Every time? Or how often?
Yes every time

I can confirm this also happens in the current stable build of 509
Lummox JR resolved issue with message:
initial(appearance_flags) did not return the correct value.
Thanks!