diff options
Diffstat (limited to 'src/topman.cpp')
| -rw-r--r-- | src/topman.cpp | 14 | 
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) {  | 
