Skip to content

Commit

Permalink
Add missing pause checks
Browse files Browse the repository at this point in the history
  • Loading branch information
KJeff01 committed Mar 31, 2024
1 parent 80e458c commit c3a0c72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sound/audio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ bool audio_PlayObjStaticTrack(SIMPLE_OBJECT *psObj, int iTrack)
//~~~~~~~~~~~~~~~

// if audio not enabled return true to carry on game without audio
if (audio_Disabled())
if (audio_Disabled() || audio_Paused())
{
return false;
}
Expand Down Expand Up @@ -755,7 +755,7 @@ bool audio_PlayObjDynamicTrack(SIMPLE_OBJECT *psObj, int iTrack, AUDIO_CALLBACK
//~~~~~~~~~~~~~~~

// if audio not enabled return true to carry on game without audio
if (audio_Disabled())
if (audio_Disabled() || audio_Paused())
{
return false;
}
Expand Down

0 comments on commit c3a0c72

Please sign in to comment.