Handle shuttle registration from inside the template

This commit is contained in:
ninjanomnom
2018-08-19 22:20:23 -04:00
parent 1c1311c4c1
commit 2fbfdd03d2
3 changed files with 7 additions and 6 deletions
-2
View File
@@ -81,8 +81,6 @@
candidates -= M
else
notify_ghosts("Space pirates are waking up!", source = spawner, action=NOTIFY_ATTACK, flashwindow = FALSE)
for(var/obj/docking_port/mobile/port in A)
port.register()
priority_announce("Unidentified armed ship detected near the station.")
+2 -3
View File
@@ -215,8 +215,7 @@
D = existing_shuttle.get_docked()
if(!D)
var/m = "No dock found for preview shuttle ([preview_template.name]), aborting."
throw EXCEPTION(m)
CRASH("No dock found for preview shuttle ([preview_template.name]), aborting.")
var/result = preview_shuttle.canDock(D)
// truthy value means that it cannot dock for some reason
@@ -254,7 +253,7 @@
. = FALSE
// load shuttle template, centred at shuttle import landmark,
var/turf/landmark_turf = get_turf(locate(/obj/effect/landmark/shuttle_import) in GLOB.landmarks_list)
S.load(landmark_turf, centered = TRUE)
S.load(landmark_turf, centered = TRUE, register = FALSE)
var/affected = S.get_affected_turfs(landmark_turf, centered=TRUE)