mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-01-01 21:13:47 +00:00
[MIRROR] fixes an issue with disposal junctions ending with weird directions & RPD icons (#8176)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
This commit is contained in:
@@ -171,6 +171,9 @@ Pipelines + Other Objects -> Pipe network
|
||||
if(construction_type)
|
||||
var/obj/item/pipe/I = new construction_type(loc, null, null, src)
|
||||
I.setPipingLayer(piping_layer)
|
||||
if(istype(I, /obj/item/pipe/trinary/flippable))
|
||||
var/obj/item/pipe/trinary/flippable/flip = I
|
||||
flip.icon_state = "[flip.icon_state][flip.mirrored ? "m" : ""]"
|
||||
transfer_fingerprints_to(I)
|
||||
qdel(src)
|
||||
|
||||
|
||||
@@ -25,15 +25,15 @@
|
||||
// Disposals handle "bent"/"corner" strangely, handle this specially.
|
||||
if(ptype == DISPOSAL_PIPE_STRAIGHT && (dir in cornerdirs))
|
||||
ptype = DISPOSAL_PIPE_CORNER
|
||||
switch(dir)
|
||||
if(NORTHWEST)
|
||||
dir = WEST
|
||||
if(NORTHEAST)
|
||||
dir = NORTH
|
||||
if(SOUTHWEST)
|
||||
dir = SOUTH
|
||||
if(SOUTHEAST)
|
||||
dir = EAST
|
||||
switch(dir)
|
||||
if(NORTHWEST)
|
||||
dir = WEST
|
||||
if(NORTHEAST)
|
||||
dir = NORTH
|
||||
if(SOUTHWEST)
|
||||
dir = SOUTH
|
||||
if(SOUTHEAST)
|
||||
dir = EAST
|
||||
|
||||
switch(ptype)
|
||||
if(DISPOSAL_PIPE_BIN, DISPOSAL_PIPE_OUTLET, DISPOSAL_PIPE_CHUTE)
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 32 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 112 KiB After Width: | Height: | Size: 114 KiB |
Reference in New Issue
Block a user