summaryrefslogtreecommitdiff
path: root/src/topman.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/topman.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/topman.cpp b/src/topman.cpp
index 8b99f0d..55123f8 100644
--- a/src/topman.cpp
+++ b/src/topman.cpp
@@ -433,7 +433,8 @@ void daTopman::updateModelMatrices() {
}
void daTopman::executeState_Walk() {
- PlaySound(this, SE_BOSS_JR_CROWN_JR_RIDE); // 5
+ if (!this->isOutOfView())
+ PlaySound(this, SE_BOSS_JR_CROWN_JR_RIDE); // 5
bool ret = calculateTileCollisions();
if (ret) {
@@ -485,7 +486,8 @@ void daTopman::updateModelMatrices() {
}
void daTopman::executeState_Wait() {
- PlaySound(this, SE_BOSS_JR_CROWN_JR_RIDE); // 5
+ if (!this->isOutOfView())
+ PlaySound(this, SE_BOSS_JR_CROWN_JR_RIDE); // 5
bool ret = calculateTileCollisions();
if (ret) {