Makes footstep sounds check if we actually moved

This commit is contained in:
Tastyfish
2016-01-01 01:45:47 -05:00
parent 58ad640d17
commit 421faee4f8
2 changed files with 4 additions and 3 deletions

View File

@@ -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

View File

@@ -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))