Skip to content

Commit

Permalink
Fix looking down not working on top z-level
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmeow committed Nov 21, 2022
1 parent 8185cf2 commit 1c648af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/mob/living/living.dm
Expand Up @@ -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
Expand Down

0 comments on commit 1c648af

Please sign in to comment.