Fix wind bar animation not looping properly
If you looked closely, you could see the wind bar “jumping” a bit.
Pixel offset was off-by-1.
--- a/ChangeLog.txt Thu Jan 10 19:09:06 2019 +0100
+++ b/ChangeLog.txt Thu Jan 10 19:21:08 2019 +0100
@@ -37,6 +37,7 @@
* Fix last 2 characters in demo chat being missing
* Hide most HUD elements in cinematic mode
* Don't show "F1", "F2", etc. in ammo menu if these aren't the actual slot keys
+ * Fix wind bar animation not looping properly
* Suppress “<team> is gone.” message at end of game
Frontend:
--- a/hedgewars/uWorld.pas Thu Jan 10 19:09:06 2019 +0100
+++ b/hedgewars/uWorld.pas Thu Jan 10 19:21:08 2019 +0100
@@ -1556,7 +1556,7 @@
if WindBarWidth > 0 then
begin
{$WARNINGS OFF}
- r.x:= 8 - (RealTicks shr 6) mod 8;
+ r.x:= 8 - (RealTicks shr 6) mod 9;
{$WARNINGS ON}
r.y:= 0;
r.w:= WindBarWidth;
@@ -1567,7 +1567,7 @@
if WindBarWidth < 0 then
begin
{$WARNINGS OFF}
- r.x:= (Longword(WindBarWidth) + RealTicks shr 6) mod 8;
+ r.x:= (Longword(WindBarWidth) + RealTicks shr 6) mod 9;
{$WARNINGS ON}
r.y:= 0;
r.w:= - WindBarWidth;
Binary file share/hedgewars/Data/Graphics/WindL.png has changed
Binary file share/hedgewars/Data/Graphics/WindR.png has changed