don't draw double 🦔 when equipping rc plane
authoralfadur
Thu, 23 May 2019 23:24:48 +0300
changeset 15036 7328f16bd299
parent 15035 a315927a44b2
child 15037 6c5502b9a038
don't draw double 🦔 when equipping rc plane
hedgewars/uGearsRender.pas
--- a/hedgewars/uGearsRender.pas	Thu May 23 20:37:41 2019 +0300
+++ b/hedgewars/uGearsRender.pas	Thu May 23 23:24:48 2019 +0300
@@ -842,10 +842,6 @@
                              DrawCircle(ox, oy, 248, 4, $FF, $00, $00, $AA);
                              end;
                 amVampiric: DrawSpriteRotatedF(sprHandVamp, hx, hy, (RealTicks div 125) mod 4, sign, aangle);
-                amRCPlane: begin
-                    DrawSpriteRotated(sprHandPlane, hx, hy, sign, 0);
-                    defaultPos:= false
-                    end;
                 amRubber,
                 amGirder: begin
                     DrawSpriteRotated(sprHandConstruction, hx, hy, sign, aangle);
@@ -919,6 +915,11 @@
                             0,
                             sign,
                             0);
+                amRCPlane:
+                    begin
+                    DrawSpriteRotated(sprHandPlane, hx, hy, sign, 0);
+                    defaultPos:= false
+                    end;
                 amBaseballBat, amMinigun:
                     begin
                     HatVisible:= true;