From 9e24f9e6ee4e3b86589cb3d3e5c4ae9b454d5a33 Mon Sep 17 00:00:00 2001 From: Verkister Date: Fri, 25 Oct 2019 11:20:48 +0300 Subject: [PATCH] Fixes non-planet zlevel weather runtime cascade Fixes the potentially server killing runtime spam caused by humanmobs walking on "outdoors" tiles on zlevels outside the range of the planetary weather system. --- code/modules/mob/living/carbon/human/human_movement.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/human/human_movement.dm b/code/modules/mob/living/carbon/human/human_movement.dm index 6d1bd819bd..f9cd3b12f6 100644 --- a/code/modules/mob/living/carbon/human/human_movement.dm +++ b/code/modules/mob/living/carbon/human/human_movement.dm @@ -140,7 +140,7 @@ . += turf_move_cost // Wind makes it easier or harder to move, depending on if you're with or against the wind. - if(T.outdoors) + if(T.outdoors && (T.z <= SSplanets.z_to_planet.len)) var/datum/planet/P = SSplanets.z_to_planet[z] if(P) var/datum/weather_holder/WH = P.weather_holder