Refactors screen object update_icon to call parent (#47094)

* Refactors screen object update_icon to call parent

And makes update_icon an /atom proc

* Cleans up some missed null checks

The student teaches the master
This commit is contained in:
Emmett Gaines
2019-10-17 18:21:50 -07:00
committed by Rob Bailey
parent 9405c840c6
commit 8982f509b5
31 changed files with 141 additions and 122 deletions
+3 -1
View File
@@ -171,7 +171,9 @@ GLOBAL_VAR_INIT(observer_default_invisibility, INVISIBILITY_OBSERVER)
* Hair will always update its dir, so if your sprite has no dirs the haircut will go all over the place.
* |- Ricotez
*/
/mob/dead/observer/proc/update_icon(new_form)
/mob/dead/observer/update_icon(new_form)
. = ..()
if(client) //We update our preferences in case they changed right before update_icon was called.
ghost_accs = client.prefs.ghost_accs
ghost_others = client.prefs.ghost_others