Bugfix: when throwing ice block to the left Tux is hurt.
authorRicardo Cruz <rick2@aeiou.pt>
Fri, 10 Sep 2004 08:54:29 +0000 (08:54 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Fri, 10 Sep 2004 08:54:29 +0000 (08:54 +0000)
SVN-Revision: 1892

src/badguy.cpp

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