mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 23:27:34 +01:00
[MIRROR] Diagonal macro thingu (#407)
* Diagonal macro thingu (#52927) * Diagonal macro thingu Co-authored-by: TiviPlus <57223640+TiviPlus@users.noreply.github.com>
This commit is contained in:
@@ -31,7 +31,7 @@ GLOBAL_LIST_EMPTY(conveyors_by_id)
|
||||
|
||||
/obj/machinery/conveyor/inverted/Initialize(mapload)
|
||||
. = ..()
|
||||
if(mapload && !(dir in GLOB.diagonals))
|
||||
if(mapload && !(ISDIAGONALDIR(dir)))
|
||||
log_mapping("[src] at [AREACOORD(src)] spawned without using a diagonal dir. Please replace with a normal version.")
|
||||
|
||||
// Auto conveyour is always on unless unpowered
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
var/initialize_dirs = initial(temp.initialize_dirs)
|
||||
var/dpdir = NONE
|
||||
|
||||
if(dir in GLOB.diagonals) // Bent pipes
|
||||
if(ISDIAGONALDIR(dir)) // Bent pipes
|
||||
return dir
|
||||
|
||||
if(initialize_dirs != DISP_DIR_NONE)
|
||||
@@ -93,7 +93,7 @@
|
||||
if(rotation_type == ROTATION_FLIP)
|
||||
var/obj/structure/disposalpipe/temp = pipe_type
|
||||
if(initial(temp.flip_type))
|
||||
if(dir in GLOB.diagonals) // Fix RPD-induced diagonal turning
|
||||
if(ISDIAGONALDIR(dir)) // Fix RPD-induced diagonal turning
|
||||
setDir(turn(dir, 45))
|
||||
pipe_type = initial(temp.flip_type)
|
||||
update_icon()
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
else
|
||||
stored = new /obj/structure/disposalconstruct(src, null , SOUTH , FALSE , src)
|
||||
|
||||
if(dir in GLOB.diagonals) // Bent pipes already have all the dirs set
|
||||
if(ISDIAGONALDIR(dir)) // Bent pipes already have all the dirs set
|
||||
initialize_dirs = NONE
|
||||
|
||||
if(initialize_dirs != DISP_DIR_NONE)
|
||||
|
||||
Reference in New Issue
Block a user