From: Ryan Flegel Date: Wed, 14 May 2008 02:24:49 +0000 (+0000) Subject: Don't increase mriceblock's squish count when hitting walls/bricks. Only when squished. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=09d567218a9f0071b26cead6e46e5d332c9f1340;p=supertux.git Don't increase mriceblock's squish count when hitting walls/bricks. Only when squished. SVN-Revision: 5471 --- diff --git a/src/badguy/mriceblock.cpp b/src/badguy/mriceblock.cpp index 0d84d8129..7ab283788 100644 --- a/src/badguy/mriceblock.cpp +++ b/src/badguy/mriceblock.cpp @@ -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");