fix hammer and rcplane sprite offsets
authoralfadur
Thu, 20 Jun 2019 16:05:03 +0300
changeset 15190 9231247b1f83
parent 15189 e7d7fe9f20e1
child 15191 9cf0c2f44f0e
fix hammer and rcplane sprite offsets
hedgewars/uGearsRender.pas
--- a/hedgewars/uGearsRender.pas	Thu Jun 20 15:56:59 2019 +0300
+++ b/hedgewars/uGearsRender.pas	Thu Jun 20 16:05:03 2019 +0300
@@ -565,7 +565,7 @@
                     end;
                 gtBallgun: DrawSpriteRotated(sprHandBallgun, hx, hy, sign, aangle);
                 gtRCPlane: begin
-                    DrawSpriteRotated(sprHandPlane, hx, hy, sign, 0);
+                    DrawSpriteRotated(sprHandPlane, hx + 1, hy, sign, 0);
                     defaultPos:= false
                     end;
                 gtRope: begin
@@ -925,14 +925,14 @@
                             sign,
                             0);
                 amHammer: DrawSpriteRotatedF(sprHammer,
-                            sx,
+                            sx + sign,
                             sy,
                             0,
                             sign,
                             0);
                 amRCPlane:
                     begin
-                    DrawSpriteRotated(sprHandPlane, hx, hy, sign, 0);
+                    DrawSpriteRotated(sprHandPlane, hx + 1, hy, sign, 0);
                     defaultPos:= false
                     end;
                 amBaseballBat, amMinigun: