--- a/hedgewars/GSHandlers.inc Sat Oct 30 20:04:38 2010 +0200
+++ b/hedgewars/GSHandlers.inc Sat Oct 30 21:43:41 2010 +0200
@@ -4100,6 +4100,7 @@
$FF);*)
doStepHedgehogMoving(hh^.Gear);
+ hh^.Gear^.Y := Gear^.Y;
if ((Gear^.Message and gmUp) <> 0) then
begin
@@ -4107,6 +4108,10 @@
end
else if (GameTicks and $1FF) <> 0 then exit;
+ if Gear^.Power < 45 then begin
+ inc(Gear^.Power);
+ Gear^.Y := Gear^.Y - _1;
+ end;
graves := GearsNear(hh^.Gear, gtGrave, Gear^.Radius);
@@ -4148,6 +4153,8 @@
LoadImage(Pathz[ptHats] + '/Reserved/Zombie', ifNone),
True);
end;
+
+ hh^.Gear^.dY := _0;
StopSound(Gear^.SoundChannel);
Gear^.Timer := 250;
Gear^.doStep := @doStepIdle;
--- a/hedgewars/GearDrawing.inc Sat Oct 30 20:04:38 2010 +0200
+++ b/hedgewars/GearDrawing.inc Sat Oct 30 21:43:41 2010 +0200
@@ -280,6 +280,8 @@
gtResurrector: begin
DrawRotated(sprHandResurrector, hwRound(Gear^.X) + WorldDx,
hwRound(Gear^.Y) + WorldDy, 0, 0);
+ DrawRotated(sprCross, hwRound(CurAmmoGear^.X) + WorldDx,
+ hwRound(CurAmmoGear^.Y) + WorldDy + (CurAmmoGear^.Power), 0, 0);
defaultPos := false;
Tint($33, $33, $FF, max($00, floor($C0 * abs(1 - (GameTicks mod 6000) / 3000))));
DrawTexture(sx - 108, sy - 108, SpritesData[sprVampiric].Texture, 4.5);
--- a/hedgewars/uConsts.pas Sat Oct 30 20:04:38 2010 +0200
+++ b/hedgewars/uConsts.pas Sat Oct 30 21:43:41 2010 +0200
@@ -74,7 +74,8 @@
sprBigExplosion, sprSmokeRing, sprBeeTrace, sprEgg, sprTargetBee, sprHandBee,
sprFeather, sprPiano, sprHandSineGun, sprPortalGun, sprPortal,
sprCheese, sprHandCheese, sprHandFlamethrower, sprChunk, sprNote,
- sprSMineOff, sprSMineOn, sprHandSMine, sprHammer, sprHandResurrector
+ sprSMineOff, sprSMineOn, sprHandSMine, sprHammer,
+ sprHandResurrector, sprCross
);
// Gears that interact with other Gears and/or Land
@@ -817,8 +818,15 @@
(FileName: 'amResurrector'; Path: ptHedgehog; AltPath: ptNone;
Texture: nil; Surface: nil; Width: 32; Height: 32;
imageWidth: 0; imageHeight: 0; saveSurf: false; priority:
- tpMedium; getDimensions: false; getImageDimensions: true)
- ); // sprHandResurrector
+ tpMedium; getDimensions: false; getImageDimensions: true),
+ //sprHandResurrector
+ (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
+ );
+
Wavez: array [TWave] of record
Sprite: TSprite;
Binary file share/hedgewars/Data/Graphics/Cross.png has changed