bug fix: running footstep is no longer played in the water

This commit is contained in:
yvt 2014-03-22 21:41:16 +09:00
parent 11a6e9d802
commit c3ee0fb0ca

View File

@ -605,7 +605,7 @@ namespace spades {
audioDevice->RegisterSound(snds[(rand() >> 8) % 8]); audioDevice->RegisterSound(snds[(rand() >> 8) % 8]);
audioDevice->Play(c, p->GetOrigin(), audioDevice->Play(c, p->GetOrigin(),
AudioParam()); AudioParam());
if(sprinting) { if(sprinting && !p->GetWade()) {
AudioParam param; AudioParam param;
param.volume *= clientPlayers[p->GetId()]->GetSprintState(); param.volume *= clientPlayers[p->GetId()]->GetSprintState();
c = audioDevice->RegisterSound(rsnds[(rand() >> 8) % 12]); c = audioDevice->RegisterSound(rsnds[(rand() >> 8) % 12]);