mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
[MIRROR] Fixes away mission gateway runtime [MDB IGNORE] (#16795)
* Fixes away mission gateway runtime (#70342) cl ShizCalev fix: Fixed a runtime when clicking an away mission gateway without the partner gateway being active. /cl * Fixes away mission gateway runtime Co-authored-by: ShizCalev <ShizCalev@users.noreply.github.com>
This commit is contained in:
@@ -455,7 +455,8 @@ GLOBAL_LIST_EMPTY(gateway_destinations)
|
||||
// Rather then that, let's just render a little preview port to the console, because for reasons that's trivial
|
||||
vis_contents = null
|
||||
|
||||
if(!our_destination)
|
||||
var/turf/center_turf = our_destination?.get_target_turf()
|
||||
if(!center_turf)
|
||||
// Draw static
|
||||
cam_background.icon_state = "scanline2"
|
||||
cam_background.color = null
|
||||
@@ -464,7 +465,6 @@ GLOBAL_LIST_EMPTY(gateway_destinations)
|
||||
|
||||
cam_background.add_filter("portal_blur", 1, list("type" = "blur", "size" = 0.5))
|
||||
|
||||
var/turf/center_turf = our_destination.get_target_turf()
|
||||
vis_contents += block(locate(center_turf.x - 1, center_turf.y - 1, center_turf.z), locate(center_turf.x + 1, center_turf.y + 1, center_turf.z))
|
||||
cam_background.icon_state = "scanline4"
|
||||
cam_background.color = "#adadff"
|
||||
|
||||
Reference in New Issue
Block a user