ID:2117214
 
Resolved
The dir value was not properly applied to movable atoms when assigning a mutable appearance to the atom's appearance var.
BYOND Version:511.1349
Operating System:Windows 10 Home 64-bit
Web Browser:Chrome 51.0.2704.103
Applies to:Dream Daemon
Status: Resolved (511.1350)

This issue has been resolved.
Test Project: http://puu.sh/q46m5/e83d4c2984.zip
/* From the DM Reference for appearance: 
Other vars that are technically part of the appearance,
but don't make any sense to change when cloning, are not changed.
These include density, dir, screen_loc, and verbs.
However, those vars ARE copied when you assign a /mutable_appearance.
*/

mob/Login()
var obj/o = new
o.dir = 4
var mutable_appearance/ma = new (o)
ASSERT(ma.dir == 4) // succeeds (good)
o.dir = 2
o.appearance = ma
ASSERT(o.appearance:dir == 4) // ...succeeds (ok?)
ASSERT(o.dir == 4) // fails (bad)
I found the issue here. There's a legacy part of the system in which movables can store a dir separate from their appearance. (Part of it is to handle cardinal direction fallbacks.) This wasn't getting set properly.
Lummox JR resolved issue with message:
The dir value was not properly applied to movable atoms when assigning a mutable appearance to the atom's appearance var.