From 6ddd772d6546758a2602a934a6b385757b77b48e Mon Sep 17 00:00:00 2001 From: Colin Noga Date: Fri, 9 Mar 2012 13:54:17 -0600 Subject: Bosses working once again - now slimmer and prettier than ever --- src/bossPodouble.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/bossPodouble.cpp') 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; -- cgit v1.2.3