From e43ac6c66596d3e2306f5bca34464ac9d9f39f2f Mon Sep 17 00:00:00 2001 From: Contrabang <91113370+Contrabang@users.noreply.github.com> Date: Tue, 26 Mar 2024 06:56:33 -0400 Subject: [PATCH] epic PR review fail (my bad) (#24706) Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com> --- code/__DEFINES/directions.dm | 3 --- code/modules/surgery/organs/augments_internal.dm | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/code/__DEFINES/directions.dm b/code/__DEFINES/directions.dm index 7e4dd3c9769..dfe3b2ecc78 100644 --- a/code/__DEFINES/directions.dm +++ b/code/__DEFINES/directions.dm @@ -28,6 +28,3 @@ #define IS_DIR_DIAGONAL(dir) (dir & (dir - 1)) /// returns TRUE if direction is cardinal and false if not #define IS_DIR_CARDINAL(dir) (!IS_DIR_DIAGONAL(dir)) - -/// Inverse direction, taking into account UP|DOWN if necessary. -#define REVERSE_DIR(dir) ( ((dir & 85) << 1) | ((dir & 170) >> 1) ) diff --git a/code/modules/surgery/organs/augments_internal.dm b/code/modules/surgery/organs/augments_internal.dm index 7819fed4e18..c110a5c7693 100644 --- a/code/modules/surgery/organs/augments_internal.dm +++ b/code/modules/surgery/organs/augments_internal.dm @@ -417,7 +417,7 @@ playsound(human_owner, 'sound/goonstation/items/hypo.ogg', 80, TRUE) var/obj/item/telegraph_vial = new /obj/item/qani_laaca_telegraph(get_turf(owner)) - var/turf/turf_we_throw_at = get_edge_target_turf(owner, REVERSE_DIR(owner.dir)) + var/turf/turf_we_throw_at = get_edge_target_turf(owner, reverse_direction(owner.dir)) telegraph_vial.throw_at(turf_we_throw_at, 5, 1) // Safety net in case the injection amount doesn't get reset. Apparently it happened to someone in a round.