mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Nukes reverse_direction() in favor of REVERSE_DIR define (#25550)
* same taste, twice the speed * pain
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
tube_dirs = list(NORTH, SOUTH)
|
||||
if(WEST)
|
||||
tube_dirs = list(NORTH, SOUTH)
|
||||
boarding_dir = reverse_direction(dir)
|
||||
boarding_dir = REVERSE_DIR(dir)
|
||||
|
||||
/obj/structure/transit_tube/station/should_stop_pod(obj/structure/transit_tube_pod/pod, from_dir)
|
||||
for(var/atom/atom in pod.contents)
|
||||
@@ -209,7 +209,7 @@
|
||||
|
||||
/obj/structure/transit_tube/station/reverse/init_tube_dirs()
|
||||
tube_dirs = list(turn(dir, -90))
|
||||
boarding_dir = reverse_direction(dir)
|
||||
boarding_dir = REVERSE_DIR(dir)
|
||||
|
||||
/obj/structure/transit_tube/station/reverse/flipped
|
||||
icon_state = "closed_terminus1"
|
||||
@@ -285,7 +285,7 @@
|
||||
|
||||
/obj/structure/transit_tube/station/dispenser/reverse/init_tube_dirs()
|
||||
tube_dirs = list(turn(dir, -90))
|
||||
boarding_dir = reverse_direction(dir)
|
||||
boarding_dir = REVERSE_DIR(dir)
|
||||
|
||||
/obj/structure/transit_tube/station/dispenser/reverse/flipped
|
||||
icon_state = "open_terminusdispenser1"
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
|
||||
var/move_result = move_animation(current_move_anim_mode)
|
||||
if(isnull(move_result))
|
||||
if(isnull(current_tube) || (!(dir in current_tube.directions()) && !(reverse_direction(dir) in current_tube.directions())))
|
||||
if(isnull(current_tube) || (!(dir in current_tube.directions()) && !(REVERSE_DIR(dir) in current_tube.directions())))
|
||||
outside_tube()
|
||||
return PROCESS_KILL
|
||||
|
||||
|
||||
Reference in New Issue
Block a user