diff options
Diffstat (limited to 'src/Person.cpp')
-rw-r--r-- | src/Person.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Person.cpp b/src/Person.cpp index 888ea8f..dca3bbb 100644 --- a/src/Person.cpp +++ b/src/Person.cpp @@ -22,7 +22,6 @@ #include <GLFW/glfw3.h> #include "Person.h" -#include "Support.h" #include "config.h" #include "misc.h" @@ -212,7 +211,7 @@ void Person::DoAnimations(int who) || targetanimation == walkanim) && (targetframe == 0 || targetframe == 8) && who == 0) { auto soundsrc = playercoords - camera.position; - playSound(gSourceID[footstepsound + abs(Random()) % 5], + playSound(gSourceID[footstepsound + randUint(5)], soundsrc.x, soundsrc.y, soundsrc.z); } @@ -574,7 +573,7 @@ void Person::DoAnimationslite(int who) || targetanimation == walkanim) && (targetframe == 0 || targetframe == 8)) { auto soundsrc = playercoords - camera.position; - playSound(gSourceID[footstepsound + abs(Random()) % 5], + playSound(gSourceID[footstepsound + randUint(5)], soundsrc.x, soundsrc.y, soundsrc.z); } |