# HG changeset patch # User Wuzzy # Date 1547144468 -3600 # Node ID 3105881d58404a5daff0f09d4f9d35ae13e3ad34 # Parent 78363dbfd5dc8045e031fed3b5a94873f0471702 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. diff -r 78363dbfd5dc -r 3105881d5840 ChangeLog.txt --- 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 “ is gone.” message at end of game Frontend: diff -r 78363dbfd5dc -r 3105881d5840 hedgewars/uWorld.pas --- 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; diff -r 78363dbfd5dc -r 3105881d5840 share/hedgewars/Data/Graphics/WindL.png Binary file share/hedgewars/Data/Graphics/WindL.png has changed diff -r 78363dbfd5dc -r 3105881d5840 share/hedgewars/Data/Graphics/WindR.png Binary file share/hedgewars/Data/Graphics/WindR.png has changed