Update code/modules/mob/living/living_movement.dm

Co-Authored-By: Rohesie <rohesie@gmail.com>
This commit is contained in:
kevinz000
2020-03-17 09:44:44 -07:00
committed by GitHub
co-authored by Rohesie
parent 052c50aef1
commit ad46b3bcef
+1 -1
View File
@@ -29,7 +29,7 @@
add_movespeed_modifier((m_intent == MOVE_INTENT_WALK)? /datum/movespeed_modifier/config_walk_run/walk : /datum/movespeed_modifier/config_walk_run/run)
/mob/living/proc/update_turf_movespeed(turf/open/T)
if(istype(T))
if(isopenturf(T))
add_or_update_variable_movespeed_modifier(/datum/movespeed_modifier/turf_slowdown, multiplicative_slowdown = T.slowdown)
else
remove_movespeed_modifier(/datum/movespeed_modifier/turf_slowdown)