This should fix it, why does our init update icons and not TG's?
This commit is contained in:
@@ -25,7 +25,6 @@
|
|||||||
pixel_x = -26
|
pixel_x = -26
|
||||||
|
|
||||||
/obj/machinery/light_switch/Initialize()
|
/obj/machinery/light_switch/Initialize()
|
||||||
. = ..()
|
|
||||||
if(istext(area))
|
if(istext(area))
|
||||||
area = text2path(area)
|
area = text2path(area)
|
||||||
if(ispath(area))
|
if(ispath(area))
|
||||||
@@ -37,7 +36,7 @@
|
|||||||
|
|
||||||
if(!name)
|
if(!name)
|
||||||
name = "light switch ([area.name])"
|
name = "light switch ([area.name])"
|
||||||
update_appearance()
|
. = ..()
|
||||||
|
|
||||||
/obj/machinery/light_switch/update_appearance(updates=ALL)
|
/obj/machinery/light_switch/update_appearance(updates=ALL)
|
||||||
. = ..()
|
. = ..()
|
||||||
|
|||||||
@@ -25,7 +25,6 @@
|
|||||||
var/efficiency = 1
|
var/efficiency = 1
|
||||||
|
|
||||||
/obj/machinery/power/solar/Initialize(mapload, obj/item/solar_assembly/S)
|
/obj/machinery/power/solar/Initialize(mapload, obj/item/solar_assembly/S)
|
||||||
. = ..()
|
|
||||||
panel = new()
|
panel = new()
|
||||||
panel.vis_flags = VIS_INHERIT_ID|VIS_INHERIT_ICON|VIS_INHERIT_PLANE
|
panel.vis_flags = VIS_INHERIT_ID|VIS_INHERIT_ICON|VIS_INHERIT_PLANE
|
||||||
vis_contents += panel
|
vis_contents += panel
|
||||||
@@ -35,6 +34,7 @@
|
|||||||
Make(S)
|
Make(S)
|
||||||
connect_to_network()
|
connect_to_network()
|
||||||
RegisterSignal(SSsun, COMSIG_SUN_MOVED, .proc/queue_update_solar_exposure)
|
RegisterSignal(SSsun, COMSIG_SUN_MOVED, .proc/queue_update_solar_exposure)
|
||||||
|
. = ..()
|
||||||
|
|
||||||
/obj/machinery/power/solar/Destroy()
|
/obj/machinery/power/solar/Destroy()
|
||||||
unset_control() //remove from control computer
|
unset_control() //remove from control computer
|
||||||
|
|||||||
Reference in New Issue
Block a user