Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerfulBacon committed Aug 25, 2024
1 parent 90438ae commit ee5e62a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/modules/unit_tests/mapping/check_disposals.dm
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,17 @@
// First check to ensure that we end up somewhere
var/obj/structure/disposalpipe/current = start
holder.current_pipe = current
holder.dir = current.dir
holder.dir = current.dir || SOUTH
while (current)
// Account for disposals shitcode
var/turf/T = get_step(current, istype(current, /obj/structure/disposalpipe/trunk) ? current.dir : current.nextdir(holder))
var/turf/T = get_step(current, istype(current, /obj/structure/disposalpipe/trunk) ? (current.dir || SOUTH) : current.nextdir(holder))
current = holder.findpipe(T)
// End detection
if (current == null)
failure_reason = "Disposal network starting at [COORD(start)] has a pipe with no output at [COORD(T)] but should lead to an outlet"
return
// Set our direction
holder.dir = get_step(holder.current_pipe, current)
holder.dir = get_dir(holder.current_pipe, current)
holder.last_pipe = current
holder.current_pipe = current
// Found a valid ending
Expand Down

0 comments on commit ee5e62a

Please sign in to comment.