Skip to content

Commit

Permalink
Fixed bugs in AudioEmitter/AudioListener IsValid (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn authored Nov 5, 2024
1 parent 9b8d379 commit 0980728
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Audio/SoundCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,7 @@ bool AudioListener::IsValid() const
if (!std::isfinite(Position.y))
return false;
if (!std::isfinite(Position.z))
return false;

if (!std::isfinite(Velocity.x))
return false;
Expand Down Expand Up @@ -975,6 +976,7 @@ bool AudioEmitter::IsValid() const
if (!std::isfinite(Position.y))
return false;
if (!std::isfinite(Position.z))
return false;

if (!std::isfinite(Velocity.x))
return false;
Expand Down

0 comments on commit 0980728

Please sign in to comment.