From 1c648af1b32d9ae28f899a801bf1b1b018056bdf Mon Sep 17 00:00:00 2001 From: itsmeow Date: Mon, 21 Nov 2022 06:54:45 -0600 Subject: [PATCH] Fix looking down not working on top z-level --- code/modules/mob/living/living.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index 87648771fb7e1..d864ccabd7d2c 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -1481,7 +1481,7 @@ // Our current z-level turf var/turf/turf_base = get_turf(src) // The target z-level turf - var/turf/turf_other = get_step_multiz(turf_base, LOOKING_DIRECTION_UP ? UP : DOWN) + var/turf/turf_other = get_step_multiz(turf_base, direction == LOOKING_DIRECTION_UP ? UP : DOWN) if(!turf_other) // There is nothing above/below return FALSE // This turf is the one we are looking through