# HG changeset patch # User nemo # Date 1328587168 18000 # Node ID 26e523c8fe88257319e1998b524dc188f0b915be # Parent 436289cfebf5bfea6c273d3d418bff7b1b032fb2 slider tweak diff -r 436289cfebf5 -r 26e523c8fe88 hedgewars/uVariables.pas --- a/hedgewars/uVariables.pas Tue Feb 07 02:10:15 2012 +0100 +++ b/hedgewars/uVariables.pas Mon Feb 06 22:59:28 2012 -0500 @@ -662,7 +662,7 @@ (FileName: 'TARDIS'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; Width: 48; Height: 79; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpHighest; getDimensions: false; getImageDimensions: true),// sprTardis (FileName: 'slider'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; - Width: 5; Height: 17; imageWidth: 5; imageHeight: 15; saveSurf: false; priority: tpLow; getDimensions: false; getImageDimensions: false) // sprSlider + Width: 3; Height: 17; imageWidth: 3; imageHeight: 17; saveSurf: false; priority: tpLow; getDimensions: false; getImageDimensions: false) // sprSlider ); diff -r 436289cfebf5 -r 26e523c8fe88 hedgewars/uWorld.pas --- a/hedgewars/uWorld.pas Tue Feb 07 02:10:15 2012 +0100 +++ b/hedgewars/uWorld.pas Mon Feb 06 22:59:28 2012 -0500 @@ -1145,7 +1145,7 @@ if Hedgehogs[i].Gear <> nil then begin inc(h,Hedgehogs[i].Gear^.Health); - if h < TeamHealth then DrawTexture(14 + round(h*TeamHealthBarWidth/TeamHealth), cScreenHeight + DrawHealthY + smallScreenOffset + 1, SpritesData[sprSlider].Texture); + if h < TeamHealth then DrawTexture(15 + h*TeamHealthBarWidth div TeamHealth, cScreenHeight + DrawHealthY + smallScreenOffset + 1, SpritesData[sprSlider].Texture); end; // draw ai kill counter for gfAISurvival diff -r 436289cfebf5 -r 26e523c8fe88 share/hedgewars/Data/Graphics/slider.png Binary file share/hedgewars/Data/Graphics/slider.png has changed