diff options
Diffstat (limited to 'src/ui/util.c')
-rw-r--r-- | src/ui/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/util.c b/src/ui/util.c index 2b6ff929..7fa5d675 100644 --- a/src/ui/util.c +++ b/src/ui/util.c | |||
@@ -337,7 +337,7 @@ void setValue_Anim(iAnim *d, float to, uint32_t span) { | |||
337 | } | 337 | } |
338 | 338 | ||
339 | void setValueSpeed_Anim(iAnim *d, float to, float unitsPerSecond) { | 339 | void setValueSpeed_Anim(iAnim *d, float to, float unitsPerSecond) { |
340 | if (iAbs(d->to - to) > 0.0001f) { | 340 | if (iAbs(d->to - to) > 0.0001f || !isFinished_Anim(d)) { |
341 | const uint32_t now = SDL_GetTicks(); | 341 | const uint32_t now = SDL_GetTicks(); |
342 | const float from = valueAt_Anim_(d, now); | 342 | const float from = valueAt_Anim_(d, now); |
343 | const float delta = to - from; | 343 | const float delta = to - from; |