mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-21 12:16:44 +01:00
correct behavior & use of QDEL_NULL_LIST+ odd shim
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
START_PROCESSING(SSobj, src)
|
||||
else
|
||||
STOP_PROCESSING(SSobj, src)
|
||||
QDEL_LIST_NULL(i_beams)
|
||||
QDEL_NULL_LIST(i_beams)
|
||||
return on
|
||||
|
||||
/obj/item/assembly/infra/update_icon()
|
||||
@@ -54,7 +54,7 @@
|
||||
|
||||
/obj/item/assembly/infra/process()
|
||||
if(!on && i_beams)
|
||||
QDEL_LIST_NULL(i_beams)
|
||||
QDEL_NULL_LIST(i_beams)
|
||||
return
|
||||
|
||||
if(!i_beams && secured && (istype(loc, /turf) || (holder && istype(holder.loc, /turf))))
|
||||
@@ -74,7 +74,7 @@
|
||||
I.visible = visible
|
||||
|
||||
/obj/item/assembly/infra/attack_hand()
|
||||
QDEL_LIST_NULL(i_beams)
|
||||
QDEL_NULL_LIST(i_beams)
|
||||
..()
|
||||
|
||||
/obj/item/assembly/infra/Move()
|
||||
@@ -84,19 +84,19 @@
|
||||
|
||||
/obj/item/assembly/infra/Moved(atom/old_loc, direction, forced = FALSE)
|
||||
. = ..()
|
||||
QDEL_LIST_NULL(i_beams)
|
||||
QDEL_NULL_LIST(i_beams)
|
||||
|
||||
/obj/item/assembly/infra/holder_movement()
|
||||
if(!holder)
|
||||
return FALSE
|
||||
QDEL_LIST_NULL(i_beams)
|
||||
QDEL_NULL_LIST(i_beams)
|
||||
return TRUE
|
||||
|
||||
/obj/item/assembly/infra/proc/trigger_beam()
|
||||
if(!process_cooldown())
|
||||
return FALSE
|
||||
pulse(0)
|
||||
QDEL_LIST_NULL(i_beams) //They will get recreated next process() if the situation is still appropriate
|
||||
QDEL_NULL_LIST(i_beams) //They will get recreated next process() if the situation is still appropriate
|
||||
if(!holder)
|
||||
visible_message("[bicon(src)] *beep* *beep*")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user