Add separate hand image for landspray
authorWuzzy <Wuzzy2@mail.ru>
Sat, 18 May 2019 00:55:59 +0200
changeset 14998 39dd40aca1b1
parent 14997 216376ea0df1
child 14999 6d4a607f2196
Add separate hand image for landspray
hedgewars/uGearsRender.pas
hedgewars/uTypes.pas
hedgewars/uVariables.pas
share/hedgewars/Data/Graphics/Hedgehog/amLandGun.png
--- a/hedgewars/uGearsRender.pas	Sat May 18 00:21:58 2019 +0200
+++ b/hedgewars/uGearsRender.pas	Sat May 18 00:55:59 2019 +0200
@@ -760,7 +760,7 @@
                     defaultPos:= false
                     end;
                 gtFlamethrower: DrawSpriteRotatedF(sprHandFlamethrower, hx, hy, (RealTicks div 125) mod 4, sign, aangle);
-                gtLandGun: DrawSpriteRotated(sprHandBallgun, hx, hy, sign, aangle);
+                gtLandGun: DrawSpriteRotated(sprHandLandGun, hx, hy, sign, aangle);
                 gtIceGun: DrawSpriteRotated(sprIceGun, hx, hy, sign, aangle);
             end;
 
@@ -919,7 +919,7 @@
                     end;
                 amBee: DrawSpriteRotatedF(sprHandBee, hx, hy, (RealTicks div 125) mod 4, sign, aangle);
                 amFlamethrower: DrawSpriteRotatedF(sprHandFlamethrower, hx, hy, (RealTicks div 125) mod 4, sign, aangle);
-                amLandGun: DrawSpriteRotated(sprHandBallgun, hx, hy, sign, aangle);
+                amLandGun: DrawSpriteRotated(sprHandLandGun, hx, hy, sign, aangle);
                 amIceGun: DrawSpriteRotated(sprIceGun, hx, hy, sign, aangle);
                 amResurrector: DrawCircle(ox, oy, 98, 4, $F5, $DB, $35, $AA); // I'd rather not like to hardcode 100 here
             end;
--- a/hedgewars/uTypes.pas	Sat May 18 00:21:58 2019 +0200
+++ b/hedgewars/uTypes.pas	Sat May 18 00:55:59 2019 +0200
@@ -94,7 +94,7 @@
             sprFlakeL, sprSDFlakeL, sprCloudL, sprSDCloudL, sprCreeper, sprHandCreeper, sprMinigun,
             sprSliderInverted, sprFingerBack, sprFingerBackInv, sprTargetPBack, sprTargetPBackInv,
             sprHealthHud, sprHealthPoisonHud, sprVampHud, sprKarmaHud, sprMedicHud, sprMedicPoisonHud,
-            sprHaloHud, sprInvulnHUD, sprAmPiano
+            sprHaloHud, sprInvulnHUD, sprAmPiano, sprHandLandGun
             );
 
     // Gears that interact with other Gears and/or Land
--- a/hedgewars/uVariables.pas	Sat May 18 00:21:58 2019 +0200
+++ b/hedgewars/uVariables.pas	Sat May 18 00:55:59 2019 +0200
@@ -841,7 +841,9 @@
             (FileName:    'InvulnHUD'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
             Width:  18; Height: 18; imageWidth: 0; imageHeight: 0; saveSurf: false; critical: true; checkSum: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprInvulnHUD
             (FileName: 'amPiano'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
-            Width:  42; Height: 42; imageWidth: 0; imageHeight: 0; saveSurf: false; critical: true; checkSum: false; priority: tpMedium; getDimensions: false; getImageDimensions: true)// sprAmPiano
+            Width:  42; Height: 42; imageWidth: 0; imageHeight: 0; saveSurf: false; critical: true; checkSum: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprAmPiano
+            (FileName:  'amLandGun'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil;
+            Width:  64; Height: 64; imageWidth: 0; imageHeight: 0; saveSurf: false; critical: true; checkSum: false; priority: tpMedium; getDimensions: false; getImageDimensions: true)// sprHandLandGun
             );
 
 
Binary file share/hedgewars/Data/Graphics/Hedgehog/amLandGun.png has changed