Fixed animation system frame skipping.

This commit is contained in:
Ulysse Cura 2026-08-19 14:13:21 +02:00
parent 8159bb4d2f
commit 75a9ceb635
1 changed files with 2 additions and 2 deletions

View File

@ -34,9 +34,9 @@ int animation_system_update(component_t *system)
{
system_data->frame_timer_ms += game.delta_time_ms;
if(system_data->frame_timer_ms >= system_data->frame_delay_ms)
while(system_data->frame_timer_ms >= system_data->frame_delay_ms)
{
system_data->frame_timer_ms = 0.0f;
system_data->frame_timer_ms -= system_data->frame_delay_ms;
if(system_data->reverse)
{