Hedgehog controlling rc plane sprite
authorunc0rr
Mon, 19 Jan 2009 15:42:07 +0000
changeset 1717 f4cf7e36ae3e
parent 1716 ca5cc5e611c0
child 1718 659b214ba777
Hedgehog controlling rc plane sprite
hedgewars/uConsts.pas
hedgewars/uGears.pas
share/hedgewars/Data/Graphics/Hedgehog/amRCPlane.png
--- a/hedgewars/uConsts.pas	Mon Jan 19 15:36:40 2009 +0000
+++ b/hedgewars/uConsts.pas	Mon Jan 19 15:42:07 2009 +0000
@@ -49,7 +49,8 @@
 			sprHurrah, sprLemonade, sprExplPart, sprExplPart2,
 			sprCakeWalk, sprCakeDown, sprAMAmmosBW, sprWatermelon,
 			sprEvilTrace, sprHellishBomb, sprSeduction, sprDress,
-			sprCensored, sprDrill, sprHandDrill, sprHandBallgun, sprBalls, sprPlane);
+			sprCensored, sprDrill, sprHandDrill, sprHandBallgun, sprBalls,
+			sprPlane, sprHandPlane);
 
 	TGearType = (gtAmmo_Bomb, gtHedgehog, gtAmmo_Grenade, gtHealthTag, // 3
 			gtGrave, gtUFO, gtShotgunShot, gtPickHammer, gtRope, // 8
@@ -458,7 +459,9 @@
 			(FileName:      'Balls'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
 			Width:  32; Height: 20; saveSurf: false),// sprBalls
 			(FileName:      'RCPlane'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
-			Width:  32; Height: 32; saveSurf: false)// sprPlane
+			Width:  32; Height: 32; saveSurf: false),// sprPlane
+			(FileName:    'amRCPlane'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil;
+			Width:  32; Height: 32; saveSurf: false) // sprHandPlane
 			);
 
 	Wavez: array [TWave] of record
--- a/hedgewars/uGears.pas	Mon Jan 19 15:36:40 2009 +0000
+++ b/hedgewars/uGears.pas	Mon Jan 19 15:42:07 2009 +0000
@@ -665,6 +665,10 @@
 				end;
 			gtDEagleShot: DrawRotated(sprDEagle, hx, hy, hwSign(Gear^.dX), aangle);
 			gtBallgun: DrawRotated(sprHandBallgun, hx, hy, hwSign(Gear^.dX), aangle);
+			gtRCPlane: begin
+				DrawRotated(sprHandPlane, hx, hy, hwSign(Gear^.dX), 0);
+				defaultPos:= false
+				end;
 			gtRope: begin
 				if Gear^.X < CurAmmoGear^.X then
 					begin
@@ -808,13 +812,17 @@
 		amt:= CurrentHedgehog^.Ammo^[CurrentHedgehog^.CurSlot, CurrentHedgehog^.CurAmmo].AmmoType;
 		case amt of
 			amBazooka,
-			amMortar,amRCPlane: DrawRotated(sprHandBazooka, hx, hy, hwSign(Gear^.dX), aangle);
-                        amBallgun: DrawRotated(sprHandBallgun, hx, hy, hwSign(Gear^.dX), aangle);
-                        amDrill: DrawRotated(sprHandDrill, hx, hy, hwSign(Gear^.dX), aangle);
+			amMortar: DrawRotated(sprHandBazooka, hx, hy, hwSign(Gear^.dX), aangle);
+			amBallgun: DrawRotated(sprHandBallgun, hx, hy, hwSign(Gear^.dX), aangle);
+			amDrill: DrawRotated(sprHandDrill, hx, hy, hwSign(Gear^.dX), aangle);
 			amRope: DrawRotated(sprHandRope, hx, hy, hwSign(Gear^.dX), aangle);
 			amShotgun: DrawRotated(sprHandShotgun, hx, hy, hwSign(Gear^.dX), aangle);
 			amDEagle: DrawRotated(sprHandDEagle, hx, hy, hwSign(Gear^.dX), aangle);
 			amBlowTorch: DrawRotated(sprHandBlowTorch, hx, hy, hwSign(Gear^.dX), aangle);
+			amRCPlane: begin
+				DrawRotated(sprHandPlane, hx, hy, hwSign(Gear^.dX), 0);
+				defaultPos:= false
+				end;
 		end;
 
 		case amt of
Binary file share/hedgewars/Data/Graphics/Hedgehog/amRCPlane.png has changed