added new sprite for drill strike drills, not intended for .15 release
authorHenek
Sat, 13 Nov 2010 14:40:06 +0100
changeset 4307 eb0f5c45e7ab
parent 4305 a020540e0ab8
child 4309 a69c73c5d173
added new sprite for drill strike drills, not intended for .15 release
hedgewars/GearDrawing.inc
hedgewars/uConsts.pas
share/hedgewars/Data/Graphics/AirDrill.png
--- a/hedgewars/GearDrawing.inc	Sat Nov 13 14:04:18 2010 +0100
+++ b/hedgewars/GearDrawing.inc	Sat Nov 13 14:40:06 2010 +0100
@@ -696,7 +696,10 @@
                       DrawRotatedf(sprPortal, x, y, Gear^.Tag, hwSign(Gear^.dX), Gear^.DirAngle)
                  else DrawRotatedf(sprPortal, x, y, 4 + Gear^.Tag div 2, hwSign(Gear^.dX), Gear^.DirAngle);
 
-       gtDrill: DrawRotated(sprDrill, x, y, 0, DxDy2Angle(Gear^.dY, Gear^.dX));
+           gtDrill: if (Gear^.State and gsttmpFlag) <> 0 then
+                        DrawRotated(sprAirDrill, x, y, 0, DxDy2Angle(Gear^.dY, Gear^.dX))
+                    else
+                        DrawRotated(sprDrill, x, y, 0, DxDy2Angle(Gear^.dY, Gear^.dX));
 
         gtHedgehog: DrawHH(Gear, x, y);
 
--- a/hedgewars/uConsts.pas	Sat Nov 13 14:04:18 2010 +0100
+++ b/hedgewars/uConsts.pas	Sat Nov 13 14:40:06 2010 +0100
@@ -75,7 +75,7 @@
             sprFeather, sprPiano, sprHandSineGun, sprPortalGun, sprPortal,
             sprCheese, sprHandCheese, sprHandFlamethrower, sprChunk, sprNote,
             sprSMineOff, sprSMineOn, sprHandSMine, sprHammer,
-            sprHandResurrector, sprCross
+            sprHandResurrector, sprCross, sprAirDrill
             );
 
     // Gears that interact with other Gears and/or Land
@@ -825,8 +825,13 @@
             (FileName: 'Cross'; Path: ptGraphics; altPath: ptNone;
                 Texture: nil; Surface: nil; Width: 108; Height: 138;
                 imageWidth: 0; imageHeight: 0; saveSurf: false; priority:
+                tpMedium; getDimensions: false; getImageDimensions: true),
+            //sprCross
+            (FileName:  'AirDrill'; Path: ptGraphics; AltPath: ptNone;
+                Texture: nil; Surface: nil; Width:  16; Height: 16;
+                imageWidth: 0; imageHeight: 0; saveSurf: false; priority:
                 tpMedium; getDimensions: false; getImageDimensions: true)
-            //sprCross
+            // sprAirDrill
             );
 
 
Binary file share/hedgewars/Data/Graphics/AirDrill.png has changed