Fix MoMMIs not being locked to a specific Z-level.

This commit is contained in:
Rob Nelson
2014-02-23 17:01:50 -08:00
parent b99274a44c
commit 4f9faac862

View File

@@ -185,7 +185,7 @@
if(istype(teleatom, /mob/living)) if(istype(teleatom, /mob/living))
var/mob/living/MM = teleatom var/mob/living/MM = teleatom
if(MM.locked_to_z != 0 && destination.z == MM.locked_to_z) if(MM.locked_to_z != 0 && destination.z != MM.locked_to_z)
MM.visible_message("\red <b>[MM] bounces off the portal!</b>","\red You're unable to go to that destination!") MM.visible_message("\red <b>[MM] bounces off the portal!</b>","\red You're unable to go to that destination!")
return 0 return 0
return 1 return 1