Use hedgehog with air attack weapon sprite
authorunc0rr
Tue, 25 Mar 2008 22:16:26 +0000
changeset 825 4b32f282f9d7
parent 824 e632cc7caf3a
child 826 b119e4f470b8
Use hedgehog with air attack weapon sprite
hedgewars/uConsts.pas
hedgewars/uGears.pas
share/hedgewars/Data/Graphics/Hedgehog/amAirAttack.png
--- a/hedgewars/uConsts.pas	Tue Mar 25 21:50:36 2008 +0000
+++ b/hedgewars/uConsts.pas	Tue Mar 25 22:16:26 2008 +0000
@@ -42,7 +42,7 @@
                    sprSwitch, sprParachute, sprTarget, sprRopeNode, sprConsoleBG,
                    sprQuestion, sprPowerBar, sprWindBar, sprWindL, sprWindR,
                    sprFlake, sprHandRope, sprHandBazooka, sprHandShotgun,
-                   sprHandDEagle);
+                   sprHandDEagle, sprHandAirAttack);
 
      TGearType  = (gtAmmo_Bomb, gtHedgehog, gtAmmo_Grenade, gtHealthTag,
                    gtGrave, gtUFO, gtShotgunShot, gtPickHammer, gtRope,
@@ -353,7 +353,9 @@
                      (FileName:  'amShotgun'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil;
                       Width:  32; Height: 32; saveSurf: false),// sprHandShotgun
                      (FileName:   'amDEagle'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil;
-                      Width:  32; Height: 32; saveSurf: false) // sprHandDEagle
+                      Width:  32; Height: 32; saveSurf: false),// sprHandDEagle
+                     (FileName:'amAirAttack'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil;
+                      Width:  32; Height: 32; saveSurf: false) // sprHandAirAttack
                      );
 
       Soundz: array[TSound] of record
--- a/hedgewars/uGears.pas	Tue Mar 25 21:50:36 2008 +0000
+++ b/hedgewars/uGears.pas	Tue Mar 25 22:16:26 2008 +0000
@@ -528,13 +528,18 @@
 			amRope,
 			amShotgun,
 			amDEagle: begin
-					DrawHedgehog(hwRound(Gear^.X) + 1 + WorldDx, hwRound(Gear^.Y) - 3 + WorldDy,
-							hwSign(Gear^.dX),
-							0,
-							4,
-							0);
-					defaultPos:= false
-				end
+				DrawHedgehog(hwRound(Gear^.X) + 1 + WorldDx, hwRound(Gear^.Y) - 3 + WorldDy,
+						hwSign(Gear^.dX),
+						0,
+						4,
+						0);
+				defaultPos:= false
+				end;
+			amAirAttack,
+			amMineStrike: begin
+				DrawRotated(sprHandAirAttack, hwRound(Gear^.X) + 1 + WorldDx, hwRound(Gear^.Y) + WorldDy, hwSign(Gear^.dX), 0);
+				defaultPos:= false
+				end;
 		else
 			DrawHedgehog(hwRound(Gear^.X) + 1 + WorldDx, hwRound(Gear^.Y) - 3 + WorldDy,
 				hwSign(Gear^.dX),
Binary file share/hedgewars/Data/Graphics/Hedgehog/amAirAttack.png has changed