From 9c4d1b8af04ef569efa3e9360d4a2766a2bef9b0 Mon Sep 17 00:00:00 2001 From: Raeschen Date: Fri, 8 Mar 2024 17:28:22 +0100 Subject: [PATCH] fix ascending through floors (#7912) --- code/modules/multiz/movement.dm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/code/modules/multiz/movement.dm b/code/modules/multiz/movement.dm index e080cef444..54e90122d0 100644 --- a/code/modules/multiz/movement.dm +++ b/code/modules/multiz/movement.dm @@ -58,10 +58,15 @@ to_chat(src, "You stopped swimming downwards.") return 0 - else if(!destination.CanZPass(src, direction)) + else if(!destination.CanZPass(src, direction)) // one for the down and non-special case to_chat(src, "\The [destination] blocks your way.") return 0 + else if(!destination.CanZPass(src, direction)) // and one for up + to_chat(src, "\The [destination] blocks your way.") + return 0 + + var/area/area = get_area(src) if(area.has_gravity() && !can_overcome_gravity()) if(direction == UP)