# HG changeset patch # User unc0rr # Date 1234630270 0 # Node ID 8ae48e3b02d941a4574a897565acb62003af9eaa # Parent 3e8caf5fee58211c2b57297f7419415a7dcbf816 New bonus box sprite diff -r 3e8caf5fee58 -r 8ae48e3b02d9 hedgewars/uConsts.pas --- a/hedgewars/uConsts.pas Sat Feb 14 16:44:50 2009 +0000 +++ b/hedgewars/uConsts.pas Sat Feb 14 16:51:10 2009 +0000 @@ -329,7 +329,7 @@ (FileName: 'MineOn'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; Width: 8; Height: 8; saveSurf: false),// sprMineOn (FileName: 'Case'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; - Width: 32; Height: 32; saveSurf: false),// sprCase + Width: 48; Height: 48; saveSurf: false),// sprCase (FileName: 'FirstAid'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; Width: 48; Height: 48; saveSurf: false),// sprFAid (FileName: 'dynamite'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; diff -r 3e8caf5fee58 -r 8ae48e3b02d9 hedgewars/uGears.pas --- a/hedgewars/uGears.pas Sat Feb 14 16:44:50 2009 +0000 +++ b/hedgewars/uGears.pas Sat Feb 14 16:51:10 2009 +0000 @@ -1126,7 +1126,11 @@ then DrawRotated(sprMineOff, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, 0, Gear^.DirAngle) else DrawRotated(sprMineOn, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, 0, Gear^.DirAngle); gtCase: case Gear^.Pos of - posCaseAmmo : DrawSprite(sprCase, hwRound(Gear^.X) - 16 + WorldDx, hwRound(Gear^.Y) - 16 + WorldDy, 0); + posCaseAmmo : begin + i:= (GameTicks shr 6) mod 64; + if i > 18 then i:= 0; + DrawSprite(sprCase, hwRound(Gear^.X) - 24 + WorldDx, hwRound(Gear^.Y) - 24 + WorldDy, i); + end; posCaseHealth: begin i:= (GameTicks shr 6) mod 64; if i > 12 then i:= 0; diff -r 3e8caf5fee58 -r 8ae48e3b02d9 share/hedgewars/Data/Graphics/Case.png Binary file share/hedgewars/Data/Graphics/Case.png has changed