Skip to content

Commit

Permalink
Revert "Pipe direction fix. (#1)" (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pickle-Coding committed Aug 10, 2021
1 parent c8d4d92 commit 3f4f08c
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions code/modules/atmospherics/machinery/pipes/smart.dm
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,16 @@ GLOBAL_LIST_INIT(atmos_components, typecacheof(list(/obj/machinery/atmospherics)
construction_type = /obj/item/pipe/quaternary
pipe_state = "manifold4w"
connection_num = 0
var/list/connections

/obj/machinery/atmospherics/pipe/smart/update_pipe_icon()
icon = 'icons/obj/atmospherics/pipes/pipes_bitmask.dmi'
var/bitfield = NONE
var/bits = 0
connections = 0
connection_num = NONE
for(var/i in 1 to device_type)
if(!nodes[i])
continue
var/obj/machinery/atmospherics/node = nodes[i]
var/connected_dir = get_dir(src, node)
connections |= connected_dir
connection_num += 1
bits++
switch(connected_dir)
if(NORTH)
Expand Down Expand Up @@ -61,17 +56,6 @@ GLOBAL_LIST_INIT(atmos_components, typecacheof(list(/obj/machinery/atmospherics)
bitfield |= WEST_SHORTPIPE

icon_state = "[bitfield]_[piping_layer]"
switch(connection_num)
if(0)
dir = 2
if(1)
dir = connections
if(2)
dir = check_binary_direction(connections)
if(3)
dir = connections
if(4)
dir = 15

/obj/machinery/atmospherics/pipe/smart/SetInitDirections(init_dir)
if(init_dir)
Expand Down

0 comments on commit 3f4f08c

Please sign in to comment.