mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +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>")
|
to_chat(src, "<span class='warning'>You stopped swimming downwards.</span>")
|
||||||
return 0
|
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>")
|
to_chat(src, "<span class='warning'>\The [destination] blocks your way.</span>")
|
||||||
return 0
|
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)
|
var/area/area = get_area(src)
|
||||||
if(area.has_gravity() && !can_overcome_gravity())
|
if(area.has_gravity() && !can_overcome_gravity())
|
||||||
if(direction == UP)
|
if(direction == UP)
|
||||||
|
|||||||
Reference in New Issue
Block a user