mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-22 13:34:09 +00:00
b0f41952b8
Because of the limited precision of our fixed-point numbers, the timeLeft calculation could sometimes return results above the actual time left, resulting in units moving a few fixed::epsilons farther than they should be, which makes them switch to the running animation. This was rather unstable however, so there was a constant 'flickering' between walking and running. If we divide last instead of first in the operation, the errors get gobbled up by the division and we no longer have this issue. Reported by: wowgetoffyourcellphone Differential Revision: https://code.wildfiregames.com/D1856 This was SVN commit r22249.