mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
fix ascending through floors (#7912)
This commit is contained in:
@@ -58,10 +58,15 @@
|
||||
to_chat(src, "<span class='warning'>You stopped swimming downwards.</span>")
|
||||
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, "<span class='warning'>\The [destination] blocks your way.</span>")
|
||||
return 0
|
||||
|
||||
else if(!destination.CanZPass(src, direction)) // and one for up
|
||||
to_chat(src, "<span class='warning'>\The [destination] blocks your way.</span>")
|
||||
return 0
|
||||
|
||||
|
||||
var/area/area = get_area(src)
|
||||
if(area.has_gravity() && !can_overcome_gravity())
|
||||
if(direction == UP)
|
||||
|
||||
Reference in New Issue
Block a user