Change to use near equal for float compare.

This commit is contained in:
Chandler Cox
2024-08-06 21:43:38 -05:00
parent 201fa888dd
commit 3186b58ba8

View File

@@ -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())
{