diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/render.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render.cpp b/src/render.cpp index 9dfa12b..8f2fdc7 100644 --- a/src/render.cpp +++ b/src/render.cpp @@ -186,7 +186,7 @@ void state_t::render(double phase, animated_texture_t *anim, rectf_t bounds, sf: if (!anim->frame_count) return; - frame = floor(fmod(phase, 1.0) * anim->frame_count); + frame = floor((phase - floor(phase)) * anim->frame_count); wot_rect.setTexture(anim->frames + frame, true); wot_rect.setFillColor(color); |