Fix compile issue t = fmod(t, (float)_duration);
This commit is contained in:
parent
35fa541350
commit
d218032448
@ -126,7 +126,7 @@ bool Animation::update (double time, int priority)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
int tt = (int) (t / _duration);
|
int tt = (int) (t / _duration);
|
||||||
t = fmod(t, (float)_duration);
|
t = fmod(t, _duration);
|
||||||
if (tt%2)
|
if (tt%2)
|
||||||
t = _duration - t;
|
t = _duration - t;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user