From 421faee4f8d7aedef0537c4eb02aa984d2dbb04c Mon Sep 17 00:00:00 2001 From: Tastyfish Date: Fri, 1 Jan 2016 01:45:47 -0500 Subject: [PATCH] Makes footstep sounds check if we actually moved --- code/modules/mob/living/carbon/human/human_movement.dm | 2 +- code/modules/mob/living/living.dm | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/code/modules/mob/living/carbon/human/human_movement.dm b/code/modules/mob/living/carbon/human/human_movement.dm index c6e6279b3ad..06217db0dee 100644 --- a/code/modules/mob/living/carbon/human/human_movement.dm +++ b/code/modules/mob/living/carbon/human/human_movement.dm @@ -90,7 +90,7 @@ /mob/living/carbon/human/Move(NewLoc, direct) . = ..() - if(shoes) + if(shoes && .) // did we actually move? if(!lying && !buckled) if(!has_gravity(loc)) return diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index c426c3d8f4c..4f1ed4eb7c9 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -477,8 +477,9 @@ if (s_active && !( s_active in contents ) && get_turf(s_active) != get_turf(src)) //check !( s_active in contents ) first so we hopefully don't have to call get_turf() so much. s_active.close(src) - handle_footstep(loc) - step_count++ + if(.) // did we actually move? + handle_footstep(loc) + step_count++ if(update_slimes) for(var/mob/living/carbon/slime/M in view(1,src))