From 49a25731f4772d1151cf515bf7332cfe834c2f56 Mon Sep 17 00:00:00 2001 From: driAn Date: Sun, 14 Oct 2007 18:04:02 +0000 Subject: [PATCH] no message git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1359 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/sound.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/src/sound.cpp b/source/src/sound.cpp index cdeeae43..60fbc441 100644 --- a/source/src/sound.cpp +++ b/source/src/sound.cpp @@ -295,6 +295,12 @@ void checkplayerloopsounds() // add other sounds here } + + if(player1->move || player1->strafe) + { + int idx = findsoundloc(S_FOOTSTEPS, player1); + if(idx == -1 || !soundlocs[idx].inuse) playsound(S_FOOTSTEPS, player1); + } } VAR(stereo, 0, 1, 1);