summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStephen Simpson <megazig@gmail.com>2011-10-11 00:17:40 -0500
committerStephen Simpson <megazig@gmail.com>2011-10-11 00:17:40 -0500
commit2ab94c6e84f9616f6cfcd7f40598ef4a3685f045 (patch)
tree00fdf60cacd54605321df21aef7fe56f9ccef692 /src
parent0640921a4a2e9e359da8d59fcbbe2df73c603a19 (diff)
downloadkamek-2ab94c6e84f9616f6cfcd7f40598ef4a3685f045.tar.gz
kamek-2ab94c6e84f9616f6cfcd7f40598ef4a3685f045.zip
added ability to have sounds play for MountainGecko
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;