Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
tad (#646)
Browse files Browse the repository at this point in the history
  • Loading branch information
Helg2 authored Jun 18, 2024
1 parent 621d251 commit 10ceab3
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
5 changes: 3 additions & 2 deletions code/modules/shuttle/on_move.dm
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ All ShuttleMove procs go here
. = ..()
parent_cameranet.addCamera(src)

/* RUTGMC DELETION
/obj/machinery/atmospherics/afterShuttleMove(turf/oldT, list/movement_force, shuttle_dir, shuttle_preferred_direction, move_dir, rotation)
. = ..()
if(pipe_vision_img)
Expand All @@ -220,8 +221,7 @@ All ShuttleMove procs go here
if(!nodes[i])
missing_nodes = TRUE
//if(missing_nodes) // ORIGINAL
if(!missing_nodes) // RUTGMC EDIT
if(missing_nodes)
atmosinit()
for(var/obj/machinery/atmospherics/A in pipeline_expansion())
A.atmosinit()
Expand All @@ -231,6 +231,7 @@ All ShuttleMove procs go here
else
// atmosinit() calls update_icon(), so we don't need to call it
update_icon()
*/

/obj/machinery/atmospherics/pipe/afterShuttleMove(turf/oldT, list/movement_force, shuttle_dir, shuttle_preferred_direction, move_dir, rotation)
. = ..()
Expand Down
24 changes: 24 additions & 0 deletions modular_RUtgmc/code/modules/shuttle/on_move.dm
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
/obj/machinery/atmospherics/afterShuttleMove(turf/oldT, list/movement_force, shuttle_dir, shuttle_preferred_direction, move_dir, rotation)
. = ..()
if(pipe_vision_img)
pipe_vision_img.loc = loc
var/missing_nodes = FALSE
for(var/i in 1 to device_type)
if(nodes[i])
var/obj/machinery/atmospherics/node = nodes[i]
var/connected = FALSE
for(var/D in GLOB.cardinals)
if(node in get_step(src, D))
connected = TRUE
break

if(!connected)
nullifyNode(i)

if(!nodes[i])
missing_nodes = TRUE

atmosinit()
for(var/obj/machinery/atmospherics/A in pipeline_expansion())
A.atmosinit()
if(A.returnPipenet())
A.addMember(src)
build_network()
covered_by_shuttle = FALSE

0 comments on commit 10ceab3

Please sign in to comment.