diff options
author | Treeki <treeki@gmail.com> | 2013-02-08 23:16:09 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2013-02-08 23:16:09 +0100 |
commit | bea26f60b932265e072a85187978ad2ddd134630 (patch) | |
tree | 6ced216b29a766bdc90dccc92f2bbc6349b11b0d /src/boss.cpp | |
parent | f66e56e087e58c3b7319e9065c375c502228dceb (diff) | |
download | kamek-bea26f60b932265e072a85187978ad2ddd134630.tar.gz kamek-bea26f60b932265e072a85187978ad2ddd134630.zip |
changed various playsound calls to playsoundwithfunctionb4
Diffstat (limited to 'src/boss.cpp')
-rw-r--r-- | src/boss.cpp | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/boss.cpp b/src/boss.cpp index df553fb..d34ae9b 100644 --- a/src/boss.cpp +++ b/src/boss.cpp @@ -104,7 +104,8 @@ void OutroSetup(daBoss *actor) { bool ShrinkBoss(daBoss *actor, Vec *pos, float scale, int timer) { - PlaySound(actor, SE_BOSS_CMN_DAMAGE_LAST); + nw4r::snd::SoundHandle handle; + PlaySoundWithFunctionB4(SoundRelatedClass, &handle, SE_BOSS_CMN_DAMAGE_LAST, 1); // Adjust actor to equal the scale of your boss / 80. actor->scale.x -= scale / 80.0; @@ -133,15 +134,21 @@ void BossExplode(daBoss *actor, Vec *pos) { actor->dying = 1; actor->timer = 0; - PlaySound(actor, STRM_BGM_SHIRO_BOSS_CLEAR); + nw4r::snd::SoundHandle handle; + PlaySoundWithFunctionB4(SoundRelatedClass, &handle, STRM_BGM_SHIRO_BOSS_CLEAR, 1); MakeMarioEnterDemoMode(); } void PlayerVictoryCries(daBoss *actor) { UpdateGameMgr(); - if (GetSpecificPlayerActor(0) != 0) { PlaySound(actor, SE_VOC_MA_CLEAR_BOSS); } - if (GetSpecificPlayerActor(1) != 0) { PlaySound(actor, SE_VOC_LU_CLEAR_BOSS); } - if (GetSpecificPlayerActor(2) != 0) { PlaySound(actor, SE_VOC_KO_CLEAR_BOSS); } - if (GetSpecificPlayerActor(3) != 0) { PlaySound(actor, SE_VOC_KO2_CLEAR_BOSS); } + nw4r::snd::SoundHandle handle1, handle2, handle3, handle4; + if (GetSpecificPlayerActor(0) != 0) + PlaySoundWithFunctionB4(SoundRelatedClass, &handle1, SE_VOC_MA_CLEAR_BOSS, 1); + if (GetSpecificPlayerActor(1) != 0) + PlaySoundWithFunctionB4(SoundRelatedClass, &handle2, SE_VOC_LU_CLEAR_BOSS, 1); + if (GetSpecificPlayerActor(2) != 0) + PlaySoundWithFunctionB4(SoundRelatedClass, &handle3, SE_VOC_KO_CLEAR_BOSS, 1); + if (GetSpecificPlayerActor(3) != 0) + PlaySoundWithFunctionB4(SoundRelatedClass, &handle4, SE_VOC_KO2_CLEAR_BOSS, 1); } |