From cd5899b6d392afbe2e035f70ce2a24b4fa8648ae Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 3 Mar 2019 07:43:04 -0500 Subject: [PATCH] Fixes mobs falling off aerostat --- .../mob/living/simple_mob/simple_mob_vr.dm | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/code/modules/mob/living/simple_mob/simple_mob_vr.dm b/code/modules/mob/living/simple_mob/simple_mob_vr.dm index 510a302a788..4f802fdbb09 100644 --- a/code/modules/mob/living/simple_mob/simple_mob_vr.dm +++ b/code/modules/mob/living/simple_mob/simple_mob_vr.dm @@ -232,16 +232,13 @@ update_icon() set_AI_busy(FALSE) ..() -/* //Was replaced with suitable_turf_type, but that can be done later. //VORESTATION AI TEMPORARY REMOVAL -// Checks to see if mob doesn't like this kind of turf -/mob/living/simple_mob/avoid_turf(var/turf/turf) - //So we only check if the parent didn't find anything terrible - if((. = ..(turf))) - return . - if(istype(turf,/turf/unsimulated/floor/sky)) - return TRUE //Mobs aren't that stupid, probably -*/ +// Checks to see if mob doesn't like this kind of turf +/mob/living/simple_mob/IMove(newloc) + if(istype(newloc,/turf/unsimulated/floor/sky)) + return MOVEMENT_FAILED //Mobs aren't that stupid, probably + return ..() // Procede as normal. + //Grab = Nomf /mob/living/simple_mob/UnarmedAttack(var/atom/A, var/proximity) . = ..()