--- 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
);
--- 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
Binary file share/hedgewars/Data/Graphics/slider.png has changed