/* 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)
ID:2117214
Jul 16 2016, 4:32 pm
|
|||||||||||||
Resolved
| |||||||||||||
Test Project: http://puu.sh/q46m5/e83d4c2984.zip
|
Jul 16 2016, 8:10 pm
|
|
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.
|