Skip to content

Commit

Permalink
[MIRROR] Make helm processing nullsafe for linked because colony ship
Browse files Browse the repository at this point in the history
  • Loading branch information
SierraKomodo authored and SierraHelper committed Nov 1, 2024
1 parent 15848fe commit 0b6469a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions code/modules/overmap/ships/computers/helm.dm
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,14 @@ GLOBAL_LIST_EMPTY(overmap_helm_computers)
/obj/machinery/computer/ship/helm/Process()
..()

if (current_operator)
if (!linked)
if (!linked)
if (current_operator)
to_chat(current_operator, SPAN_DANGER("\The [src]'s controls lock up with an error flashing across the screen: Connection to vessel lost!"))
set_operator(null, TRUE)
else if (!Adjacent(current_operator) || CanUseTopic(current_operator) != STATUS_INTERACTIVE || !viewing_overmap(current_operator))
set_operator(null)
return

if (current_operator && (!Adjacent(current_operator) || CanUseTopic(current_operator) != STATUS_INTERACTIVE || !viewing_overmap(current_operator)))
set_operator(null)

if (autopilot && dx && dy)
var/turf/T = locate(dx,dy,GLOB.using_map.overmap_z)
Expand Down

0 comments on commit 0b6469a

Please sign in to comment.