mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-30 08:29:57 +01:00
Refactored movement observable away (#20083)
Refactored movement observable away, use only the signal. Some tweaks to the signal.
This commit is contained in:
@@ -68,7 +68,7 @@
|
||||
/obj/item/storage/slide_projector/proc/stop_projecting()
|
||||
if(projection)
|
||||
QDEL_NULL(projection)
|
||||
GLOB.moved_event.unregister(src, src, PROC_REF(check_projections))
|
||||
UnregisterSignal(src, COMSIG_MOVABLE_MOVED)
|
||||
set_light(0)
|
||||
update_icon()
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
break
|
||||
projection = new projection_type(target)
|
||||
projection.set_source(current_slide)
|
||||
GLOB.moved_event.register(src, src, PROC_REF(check_projections))
|
||||
RegisterSignal(src, COMSIG_MOVABLE_MOVED, PROC_REF(check_projections))
|
||||
set_light(1.4, 0.1, COLOR_WHITE) //Bit of light
|
||||
update_icon()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user