Nukes reverse_direction() in favor of REVERSE_DIR define (#25550)

* same taste, twice the speed

* pain
This commit is contained in:
chuga-git
2024-06-06 03:18:48 +00:00
committed by GitHub
parent 854978fb7f
commit 66f18ffc74
16 changed files with 19 additions and 35 deletions
+1 -1
View File
@@ -137,7 +137,7 @@
if(!direction) // cable direction = 0, which means its a node
return TRUE
var/turf/potential_cable_turf = get_step(origin_turf, direction)
var/reversed_direction = reverse_direction(direction)
var/reversed_direction = REVERSE_DIR(direction)
for(var/obj/structure/cable/other_cable in potential_cable_turf.contents)
if(reversed_direction == other_cable.d1 || reversed_direction == other_cable.d2)
return TRUE