mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-11 08:16:17 +01:00
The 515 MegaPR early downport (#7783)
Co-authored-by: Selis <selis@xynolabs.com> Co-authored-by: Selis <sirlionfur@hotmail.de> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: SatinIsle <thesatinisle@gmail.com> Co-authored-by: Heroman <alesha3000@list.ru> Co-authored-by: Casey <a.roaming.shadow@gmail.com> Co-authored-by: Raeschen <rycoop29@gmail.com>
This commit is contained in:
@@ -257,7 +257,7 @@
|
||||
|
||||
// Observer pattern pre-move
|
||||
var/old_location = current_location
|
||||
GLOB.shuttle_pre_move_event.raise_event(src, old_location, destination)
|
||||
SEND_SIGNAL(src, COMSIG_OBSERVER_SHUTTLE_PRE_MOVE, old_location, destination)
|
||||
current_location.shuttle_departed(src)
|
||||
|
||||
if(debug_logging)
|
||||
@@ -273,7 +273,7 @@
|
||||
|
||||
// Observer pattern post-move
|
||||
destination.shuttle_arrived(src)
|
||||
GLOB.shuttle_moved_event.raise_event(src, old_location, destination)
|
||||
SEND_SIGNAL(src, COMSIG_OBSERVER_SHUTTLE_MOVED, old_location, destination)
|
||||
|
||||
return TRUE
|
||||
|
||||
|
||||
@@ -409,10 +409,10 @@
|
||||
|
||||
/obj/shuttle_connector/Initialize()
|
||||
. = ..()
|
||||
GLOB.shuttle_added.register_global(src, PROC_REF(setup_routes))
|
||||
RegisterSignal(SSshuttles,COMSIG_OBSERVER_SHUTTLE_ADDED,PROC_REF(setup_routes))
|
||||
|
||||
/obj/shuttle_connector/Destroy()
|
||||
GLOB.shuttle_added.unregister_global(src, PROC_REF(setup_routes))
|
||||
UnregisterSignal(SSshuttles,COMSIG_OBSERVER_SHUTTLE_ADDED)
|
||||
. = ..()
|
||||
|
||||
// This is called whenever a shuttle is initialized. If its our shuttle, do our thing!
|
||||
|
||||
Reference in New Issue
Block a user