Don't increase mriceblock's squish count when hitting walls/bricks. Only when squished.
authorRyan Flegel <rflegel@gmail.com>
Wed, 14 May 2008 02:24:49 +0000 (02:24 +0000)
committerRyan Flegel <rflegel@gmail.com>
Wed, 14 May 2008 02:24:49 +0000 (02:24 +0000)
SVN-Revision: 5471

src/badguy/mriceblock.cpp

index 0d84d81..7ab2837 100644 (file)
@@ -106,12 +106,10 @@ MrIceBlock::collision_solid(const CollisionHit& hit)
       if(hit.right && dir == RIGHT) {
         dir = LEFT;
         sound_manager->play("sounds/iceblock_bump.wav", get_pos());
-        if(++squishcount >= MAXSQUISHES) { kill_fall(); break; }
         physic.set_velocity_x(-KICKSPEED);
       } else if(hit.left && dir == LEFT) {
         dir = RIGHT;
         sound_manager->play("sounds/iceblock_bump.wav", get_pos());
-        if(++squishcount >= MAXSQUISHES) { kill_fall(); break; }
         physic.set_velocity_x(KICKSPEED);
       }
       sprite->set_action(dir == LEFT ? "flat-left" : "flat-right");