mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-13 00:47:31 +01:00
Z-Move Fix (#10235)
This commit is contained in:
@@ -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."))
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user