mirror of https://github.com/axmolengine/axmol.git
Fix actions with zero duration on NDK 16. (#18596)
This commit is contained in:
parent
6164456840
commit
2c025d8048
|
@ -126,9 +126,9 @@ void ActionInterval::step(float dt)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
float updateDt = MAX (0, // needed for rewind. elapsed could be negative
|
float updateDt = std::max(0.0f, // needed for rewind. elapsed could be negative
|
||||||
MIN(1, _elapsed / _duration)
|
std::min(1.0f, _elapsed / _duration)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (sendUpdateEventToScript(updateDt, this)) return;
|
if (sendUpdateEventToScript(updateDt, this)) return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue