# HG changeset patch # User smxx # Date 1269701861 0 # Node ID c8d7c852e26ad4826c02ca567730809b25052298 # Parent 06c089cb739cefd8697df52c9be5345828826883 Engine: * Fixed new animations/sprites for homing bee diff -r 06c089cb739c -r c8d7c852e26a hedgewars/uConsts.pas --- a/hedgewars/uConsts.pas Sat Mar 27 14:55:59 2010 +0000 +++ b/hedgewars/uConsts.pas Sat Mar 27 14:57:41 2010 +0000 @@ -76,7 +76,7 @@ sprAmTeleport, sprSplash, sprDroplet, sprBirdy, sprHandCake, sprHandConstruction, sprHandGrenade, sprHandMelon, sprHandMortar, sprHandSkip, sprHandCluster, sprHandDynamite, sprHandHellish, sprHandMine, sprHandSeduction, sprHandVamp, - sprBigExplosion, sprSmokeRing, sprBeeTrace, sprEgg); + sprBigExplosion, sprSmokeRing, sprBeeTrace, sprEgg, sprTargetBee, sprHandBee); TGearType = (gtAmmo_Bomb, gtHedgehog, gtAmmo_Grenade, gtHealthTag, // 3 gtGrave, gtBee, gtShotgunShot, gtPickHammer, gtRope, // 8 @@ -726,7 +726,11 @@ (FileName: 'BeeTrace'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; Width: 16; Height: 16; imageWidth: 0; imageHeight: 0; saveSurf: false), // sprBeeTrace (FileName: 'Egg'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; - Width: 8; Height: 8; imageWidth: 0; imageHeight: 0; saveSurf: false) // sprEgg + Width: 8; Height: 8; imageWidth: 0; imageHeight: 0; saveSurf: false), // sprEgg + (FileName: 'TargetBee'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; + Width: 32; Height: 32; imageWidth: 0; imageHeight: 0; saveSurf: false), // sprTargetBee + (FileName: 'amBee'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil; + Width: 128; Height: 128; imageWidth: 0; imageHeight: 0; saveSurf: false) // sprHandBee ); Wavez: array [TWave] of record diff -r 06c089cb739c -r c8d7c852e26a hedgewars/uGears.pas --- a/hedgewars/uGears.pas Sat Mar 27 14:55:59 2010 +0000 +++ b/hedgewars/uGears.pas Sat Mar 27 14:57:41 2010 +0000 @@ -1247,7 +1247,8 @@ cWaterLine+WorldDy, LongInt(leftX)+WorldDx) end; -// amBee: DrawRotated(sprHandBee, hx, hy, hwSign(Gear^.dX), aangle); + //amBee: DrawRotatedF(sprHandBee, hx, hy, (RealTicks div 125) mod 4, hwSign(Gear^.dX), aangle); + amBee: DrawRotatedF(sprHandBee, hx, hy, 0, hwSign(Gear^.dX), aangle); end; case amt of diff -r 06c089cb739c -r c8d7c852e26a hedgewars/uWorld.pas --- a/hedgewars/uWorld.pas Sat Mar 27 14:55:59 2010 +0000 +++ b/hedgewars/uWorld.pas Sat Mar 27 14:57:41 2010 +0000 @@ -530,9 +530,9 @@ begin with PHedgehog(CurrentHedgehog)^ do begin -// if (Ammo^[CurSlot, CurAmmo].AmmoType = amBee) then -// DrawRotatedF(sprTargetBee, TargetPoint.X + WorldDx, TargetPoint.Y + WorldDy, 0, 0, (RealTicks shr 3) mod 360) -// else + if (Ammo^[CurSlot, CurAmmo].AmmoType = amBee) then + DrawRotatedF(sprTargetBee, TargetPoint.X + WorldDx, TargetPoint.Y + WorldDy, 0, 0, (RealTicks shr 3) mod 360) + else DrawRotatedF(sprTargetP, TargetPoint.X + WorldDx, TargetPoint.Y + WorldDy, 0, 0, (RealTicks shr 3) mod 360); end; end; diff -r 06c089cb739c -r c8d7c852e26a share/hedgewars/Data/Graphics/Hedgehog/amBee.png Binary file share/hedgewars/Data/Graphics/Hedgehog/amBee.png has changed