Bugfix: ice blocks were hurting player when dropped.
authorRicardo Cruz <rick2@aeiou.pt>
Thu, 9 Sep 2004 20:44:32 +0000 (20:44 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Thu, 9 Sep 2004 20:44:32 +0000 (20:44 +0000)
SVN-Revision: 1890

src/badguy.cpp

index 1303cb0..2dd2993 100644 (file)
@@ -365,9 +365,9 @@ BadGuy::action_mriceblock(double elapsed_time)
       if(tux.input.fire != DOWN) /* SHOOT! */
         {
           if(dir == LEFT)
-            base.x -= 24;
+            base.x = tux.base.x;
           else
-            base.x += 24;
+            base.x = tux.base.x + tux.base.width;
           old_base = base;
 
           mode=KICK;