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
+2 -3
View File
@@ -112,11 +112,10 @@
/turf/open/floor/holofloor/carpet/Initialize()
. = ..()
addtimer(CALLBACK(src, .proc/update_icon), 1)
addtimer(CALLBACK(src, /atom/.proc/update_icon), 1)
/turf/open/floor/holofloor/carpet/update_icon()
if(!..())
return 0
. = ..()
if(intact)
queue_smooth(src)