diff options
author | Colin Noga <Tempus@chronometry.ca> | 2012-03-09 13:54:17 -0600 |
---|---|---|
committer | Colin Noga <Tempus@chronometry.ca> | 2012-03-09 13:54:17 -0600 |
commit | 6ddd772d6546758a2602a934a6b385757b77b48e (patch) | |
tree | 81e01b4361dd5e95caf76e263cead9d408e26c61 /src/bossPodouble.cpp | |
parent | d8eecb8815c3dc566f13c536f0a9cae4de752b45 (diff) | |
download | kamek-6ddd772d6546758a2602a934a6b385757b77b48e.tar.gz kamek-6ddd772d6546758a2602a934a6b385757b77b48e.zip |
Bosses working once again - now slimmer and prettier than ever
Diffstat (limited to 'src/bossPodouble.cpp')
-rw-r--r-- | src/bossPodouble.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/bossPodouble.cpp b/src/bossPodouble.cpp index 266d2c7..26c20a9 100644 --- a/src/bossPodouble.cpp +++ b/src/bossPodouble.cpp @@ -521,7 +521,11 @@ int daPodouble::onDraw() { bool ret; ret = ShrinkBoss(this, &this->pos, 3.5, this->timer); - if (ret) { BossExplode(this, &this->pos); } + if (ret == true) { + BossExplode(this, &this->pos); + this->dying = 1; + this->timer = 0; + } else { PlaySound(this, SE_EMY_BUBBLE_EXTINCT); } this->timer += 1; @@ -546,7 +550,11 @@ int daPodouble::onDraw() { bool ret; ret = ShrinkBoss(this, &this->pos, 3.5, this->timer); - if (ret) { BossExplode(this, &this->pos); } + if (ret == true) { + BossExplode(this, &this->pos); + this->dying = 1; + this->timer = 0; + } else { PlaySound(this, SE_EMY_BUBBLE_EXTINCT); } this->timer += 1; |