Z-Move Fix (#10235)

This commit is contained in:
Geeves
2020-10-13 17:20:39 +02:00
committed by GitHub
parent f5eab4c267
commit fc506f2264
3 changed files with 8 additions and 4 deletions
-3
View File
@@ -35,9 +35,6 @@
if (eyeobj)
return eyeobj.zMove(direction)
if(istype(src.loc,/obj/machinery/cryopod)||istype(src.loc,/obj/machinery/recharge_station))
return FALSE
// Check if we can actually travel a Z-level.
if (!can_ztravel(direction))
to_chat(src, SPAN_WARNING("You lack means of travel in that direction."))
+2 -1
View File
@@ -12,7 +12,8 @@
* @return TRUE if A can pass in the movement direction, FALSE if not.
*/
/turf/proc/CanZPass(atom/A, direction)
if(z == A.z) //moving FROM this turf
var/turf/T = get_turf(A)
if(z == T.z) //moving FROM this turf
return direction == UP //can't go below
else
if(direction == UP) //on a turf below, trying to enter