In the invincible mode, don't bump/squish enemies, just kill them!
authorRicardo Cruz <rick2@aeiou.pt>
Thu, 29 Apr 2004 23:23:20 +0000 (23:23 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Thu, 29 Apr 2004 23:23:20 +0000 (23:23 +0000)
SVN-Revision: 855

src/world.cpp

index 1c18756..f087b80 100644 (file)
@@ -374,7 +374,8 @@ World::collision_handler()
           // functions of the collided objects.
           if (tux.previous_base.y < tux.base.y &&
               tux.previous_base.y + tux.previous_base.height 
-              < (*i)->base.y + (*i)->base.height/2)
+              < (*i)->base.y + (*i)->base.height/2
+              && !tux.invincible_timer.started())
             {
               (*i)->collision(&tux, CO_PLAYER, COLLISION_SQUISH);
             }