Change to use near equal for float compare.
This commit is contained in:
@@ -420,7 +420,7 @@ void AudioSource::Update()
|
||||
AudioBackend::Source::VelocityChanged(this);
|
||||
}
|
||||
|
||||
if (!UseStreaming() && GetTime() == GetStartTime() && _isActuallyPlayingSth && !_startingToPlay)
|
||||
if (!UseStreaming() && Math::NearEqual(GetTime(), GetStartTime()) && _isActuallyPlayingSth && !_startingToPlay)
|
||||
{
|
||||
if (GetIsLooping())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user