From a29f386fd396d554c3271a67e3a84788fed8418b Mon Sep 17 00:00:00 2001 From: Anewbe Date: Tue, 24 Oct 2017 17:36:19 -0500 Subject: [PATCH] Corrects the walking footstep play ratio --- code/modules/mob/living/carbon/human/human_movement.dm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/code/modules/mob/living/carbon/human/human_movement.dm b/code/modules/mob/living/carbon/human/human_movement.dm index 4528df34f7..3d889c2a89 100644 --- a/code/modules/mob/living/carbon/human/human_movement.dm +++ b/code/modules/mob/living/carbon/human/human_movement.dm @@ -174,11 +174,12 @@ var/S = pick(footstep_sounds) if(!S) return - // Play every other step while running - if(m_intent == "run" && step_count++ % 2 == 0) - return // Play every 20 steps while walking, for the sneak - if(m_intent == "walk" && step_count++ % 20 == 0) + if(m_intent == "walk" && step_count++ % 20 != 0) + return + + // Play every other step while running + if(m_intent == "run" && step_count++ % 2 != 0) return var/volume = config.footstep_volume