From: Ricardo Cruz Date: Fri, 10 Sep 2004 08:54:29 +0000 (+0000) Subject: Bugfix: when throwing ice block to the left Tux is hurt. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b915debdcb7a40e9dc5fbc973ca045c786e9d4b2;p=supertux.git Bugfix: when throwing ice block to the left Tux is hurt. SVN-Revision: 1892 --- diff --git a/src/badguy.cpp b/src/badguy.cpp index 2dd299312..b8bcb6f0f 100644 --- a/src/badguy.cpp +++ b/src/badguy.cpp @@ -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;