From f2fe57f3afafac0665eec82b0b3c8ecfc2f693e5 Mon Sep 17 00:00:00 2001 From: silicons <2003111+silicons@users.noreply.github.com> Date: Sun, 2 Nov 2025 09:48:04 -0800 Subject: [PATCH] fixes runtime in planet wind movement slowdown (#7389) can we refactor planets yet please --- code/modules/mob/living/carbon/human/movement.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/human/movement.dm b/code/modules/mob/living/carbon/human/movement.dm index f2bbfe8c4c2..85551cd3db1 100644 --- a/code/modules/mob/living/carbon/human/movement.dm +++ b/code/modules/mob/living/carbon/human/movement.dm @@ -115,7 +115,7 @@ // Wind makes it easier or harder to move, depending on if you're with or against the wind. if(T.outdoors && (T.z <= SSplanets.z_to_planet.len)) - var/datum/planet/P = SSplanets.z_to_planet[z] + var/datum/planet/P = SSplanets.z_to_planet[T.z] if(P) var/datum/weather_holder/WH = P.weather_holder if(WH && WH.wind_speed) // Is there any wind?