[Supertux-Commit] r5471 - trunk/supertux/src/badguy

sik0fewl at millhouse.dreamhost.com sik0fewl at millhouse.dreamhost.com
Tue May 13 19:24:50 PDT 2008


Author: sik0fewl
Date: 2008-05-13 19:24:49 -0700 (Tue, 13 May 2008)
New Revision: 5471

Modified:
   trunk/supertux/src/badguy/mriceblock.cpp
Log:
Don't increase mriceblock's squish count when hitting walls/bricks. Only when squished.

Modified: trunk/supertux/src/badguy/mriceblock.cpp
===================================================================
--- trunk/supertux/src/badguy/mriceblock.cpp	2008-05-14 02:02:55 UTC (rev 5470)
+++ trunk/supertux/src/badguy/mriceblock.cpp	2008-05-14 02:24:49 UTC (rev 5471)
@@ -106,12 +106,10 @@
       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");




More information about the Supertux-Commit mailing list