Fix 3 runtimes.

Air alarms should be made to just use Init later on
This commit is contained in:
joep van der velden
2021-04-26 21:07:27 +02:00
parent 09143c0657
commit 70d201b312
3 changed files with 12 additions and 11 deletions
@@ -197,13 +197,7 @@
apply_mode()
/obj/machinery/alarm/New(loc, direction, building = 0)
. = ..()
GLOB.air_alarms += src
GLOB.air_alarms = sortAtom(GLOB.air_alarms)
wires = new(src)
if(building)
if(building) // Do this first since the Init uses this later on. TODO refactor to just use an Init
if(loc)
src.loc = loc
@@ -213,10 +207,15 @@
buildstage = 0
wiresexposed = 1
set_pixel_offsets_from_dir(-24, 24, -24, 24)
update_icon()
return
first_run()
. = ..()
GLOB.air_alarms += src
GLOB.air_alarms = sortAtom(GLOB.air_alarms)
wires = new(src)
if(!building)
first_run()
/obj/machinery/alarm/Destroy()
SStgui.close_uis(wires)
+1 -1
View File
@@ -680,7 +680,7 @@
if(query_find_link.NextRow())
if(query_find_link.item[1])
if(!fromban)
to_chat(src, "Your forum account is already set. (" + query_find_link.item[1] + ")")
to_chat(src, "Your forum account is already set. ([query_find_link.item[1]])")
qdel(query_find_link)
return
qdel(query_find_link)
@@ -78,6 +78,8 @@
for(var/atom/T in get_turf(D))
D.reagents.reaction(T)
sleep(3)
if(QDELETED(D))
return
qdel(D)