Tweak to prompt pop-up updated

On my laptop the prompt was basically not coming up at all
(only one animation step every few seconds), because apparently
it was stuck doing "w += 0" due to how few ticks went by within
the loop! :-D
This commit is contained in:
Bill Kendrick 2023-03-14 22:14:15 -07:00
parent 7103897bc7
commit e77e9b89d4

View file

@ -15275,7 +15275,7 @@ static int do_prompt_image_flash_snd(const char *const text,
/* Calculate the amount by which to move to the next animation frame */
next_ms = SDL_GetTicks64();
w += (next_ms - last_ms) * r_ttools.w / anim_ms;
w += max(1, ((next_ms - last_ms) * r_ttools.w) / anim_ms);
last_ms = next_ms;
}