summaryrefslogtreecommitdiff
path: root/src/topman.cpp
diff options
context:
space:
mode:
authorColin Noga <Tempus@chronometry.ca>2013-05-25 00:03:33 -0500
committerColin Noga <Tempus@chronometry.ca>2013-05-25 00:03:33 -0500
commit2e39b2f0ce099aa167c8a188d88e30af4bfc19f3 (patch)
tree4d2b934e18131af6c21f155119eff0fcc2833afd /src/topman.cpp
parent77b1f261686cbec9593656f404d059d9fdc6fe7f (diff)
downloadkamek-2e39b2f0ce099aa167c8a188d88e30af4bfc19f3.tar.gz
kamek-2e39b2f0ce099aa167c8a188d88e30af4bfc19f3.zip
A large number of fixes - ramboo, samurai, shy guy, topman, MrSun, classic controller
Diffstat (limited to 'src/topman.cpp')
-rw-r--r--src/topman.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/topman.cpp b/src/topman.cpp
index 55123f8..5d98761 100644
--- a/src/topman.cpp
+++ b/src/topman.cpp
@@ -433,8 +433,11 @@ void daTopman::updateModelMatrices() {
}
void daTopman::executeState_Walk() {
- if (!this->isOutOfView())
- PlaySound(this, SE_BOSS_JR_CROWN_JR_RIDE); // 5
+ if (!this->isOutOfView()) {
+ nw4r::snd::SoundHandle *handle = PlaySound(this, SE_BOSS_JR_CROWN_JR_RIDE);
+ if (handle)
+ handle->SetVolume(0.5f, 0);
+ }
bool ret = calculateTileCollisions();
if (ret) {
@@ -486,8 +489,11 @@ void daTopman::updateModelMatrices() {
}
void daTopman::executeState_Wait() {
- if (!this->isOutOfView())
- PlaySound(this, SE_BOSS_JR_CROWN_JR_RIDE); // 5
+ if (!this->isOutOfView()) {
+ nw4r::snd::SoundHandle *handle = PlaySound(this, SE_BOSS_JR_CROWN_JR_RIDE);
+ if (handle)
+ handle->SetVolume(0.5f, 0);
+ }
bool ret = calculateTileCollisions();
if (ret) {