Skip to content

Commit

Permalink
Another try
Browse files Browse the repository at this point in the history
  • Loading branch information
ScriptedSnark committed Apr 14, 2024
1 parent 873f702 commit 0d2f390
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GSChaos/CChaos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -622,8 +622,8 @@ void CChaos::OnFrame(double time)
volume = CVAR_GET_POINTER("volume");
else
{ // spaghetti
if (volume->value != 0.0f)
ma_engine_set_volume(&miniAudio, volume->value + 0.25f);
if (volume->value > 0.0f)
ma_engine_set_volume(&miniAudio, max(0.0f, volume->value) + 0.25f);
else
ma_engine_set_volume(&miniAudio, 0.0f);
}
Expand Down

0 comments on commit 0d2f390

Please sign in to comment.