bug fix: running footstep is no longer played in the water
This commit is contained in:
parent
11a6e9d802
commit
c3ee0fb0ca
@ -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]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user