Toss in scaled down underwater SD mine as "air mine" pending, er, cybernetic butterflies or whatever
authornemo
Sun, 18 Jan 2015 14:18:06 -0500
changeset 10792 f6df7d6e18e5
parent 10791 0311c9fa7498
child 10794 ace862eda192
Toss in scaled down underwater SD mine as "air mine" pending, er, cybernetic butterflies or whatever
hedgewars/uGearsRender.pas
hedgewars/uTypes.pas
hedgewars/uVariables.pas
share/hedgewars/Data/Graphics/AirMine.png
--- a/hedgewars/uGearsRender.pas	Sat Jan 17 10:07:12 2015 -0500
+++ b/hedgewars/uGearsRender.pas	Sun Jan 18 14:18:06 2015 -0500
@@ -1120,7 +1120,7 @@
                        DrawSpriteRotated(sprMineOn, x, y, 0, Gear^.DirAngle)
                     else DrawSpriteRotated(sprMineDead, x, y, 0, Gear^.DirAngle);
                     end;
-         gtAirMine:  DrawSpriteRotated(sprMineOff, x, y, 0, 0);
+         gtAirMine: DrawSprite(sprAirMine, x, y, (RealTicks div 125) mod 16);
 
            gtSMine: if (((Gear^.State and gstAttacking) = 0)or((Gear^.Timer and $3FF) < 420)) and (Gear^.Health <> 0) then
                            DrawSpriteRotated(sprSMineOff, x, y, 0, Gear^.DirAngle)
--- a/hedgewars/uTypes.pas	Sat Jan 17 10:07:12 2015 -0500
+++ b/hedgewars/uTypes.pas	Sun Jan 18 14:18:06 2015 -0500
@@ -87,7 +87,8 @@
             sprHandResurrector, sprCross, sprAirDrill, sprNapalmBomb,
             sprBulletHit, sprSnowball, sprHandSnowball, sprSnow,
             sprSDFlake, sprSDWater, sprSDCloud, sprSDSplash, sprSDDroplet, sprTardis,
-            sprSlider, sprBotlevels, sprHandKnife, sprKnife, sprStar, sprIceTexture, sprIceGun, sprFrozenHog, sprAmRubber, sprBoing, sprCustom1, sprCustom2
+            sprSlider, sprBotlevels, sprHandKnife, sprKnife, sprStar, sprIceTexture, sprIceGun,
+            sprFrozenHog, sprAmRubber, sprBoing, sprCustom1, sprCustom2, sprAirMine
             );
 
     // Gears that interact with other Gears and/or Land
--- a/hedgewars/uVariables.pas	Sat Jan 17 10:07:12 2015 -0500
+++ b/hedgewars/uVariables.pas	Sun Jan 18 14:18:06 2015 -0500
@@ -701,7 +701,9 @@
             (FileName:       'custom1'; Path: ptCurrTheme;AltPath: ptGraphics; Texture: nil; Surface: nil;
             Width:   0; Height:  0; imageWidth: 0; imageHeight: 0; saveSurf: true; priority: tpLow; getDimensions: true; getImageDimensions: true), // sprCustom1
             (FileName:       'custom2'; Path: ptCurrTheme;AltPath: ptGraphics; Texture: nil; Surface: nil;
-            Width:   0; Height:  0; imageWidth: 0; imageHeight: 0; saveSurf: true; priority: tpLow; getDimensions: true; getImageDimensions: true) // sprCustom2
+            Width:   0; Height:  0; imageWidth: 0; imageHeight: 0; saveSurf: true; priority: tpLow; getDimensions: true; getImageDimensions: true), // sprCustom2
+            (FileName:      'AirMine'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
+            Width:  32; Height: 32; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpHighest; getDimensions: false; getImageDimensions: true)// sprAirMine
             );
 
 const
Binary file share/hedgewars/Data/Graphics/AirMine.png has changed