summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/bossMegaGoomba.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/bossMegaGoomba.cpp b/src/bossMegaGoomba.cpp
index e6c2b0b..02a7426 100644
--- a/src/bossMegaGoomba.cpp
+++ b/src/bossMegaGoomba.cpp
@@ -91,6 +91,7 @@ class daMegaGoomba_c : public dEn_c {
DECLARE_STATE(Launch);
};
+extern "C" void *PlaySound(dStageActor_c *, int soundID);
//extern void * HandleXSpeed(daMegaGoomba_c*);
//extern void * HandleYSpeed(daMegaGoomba_c*);
@@ -501,12 +502,6 @@ void daMegaGoomba_c::executeState_Walk() {
if(this->pickedChoice != -1) {
Choice = this->pickedChoice;
- /*
- if(this->playIt = 1) {
- playSound(this->toPlay);
- this->playIt = 0;
- }
- */
} else {
Choice = GenerateRandomNumber(4);
}
@@ -520,8 +515,12 @@ void daMegaGoomba_c::executeState_Walk() {
case 2:
break;
//FIXME test case for sound effects
- //case 3:
- // break;
+ case 3:
+ if(this->playIt = 1) {
+ PlaySound(this->toPlay);
+ this->playIt = 0;
+ }
+ break;
default:
this->direction = dSprite_c__getXDirectionOfFurthestPlayerRelativeToVEC3(this, pos);
this->timer = 0;