Skip to content

Commit

Permalink
Hackish volume stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ScriptedSnark committed Apr 14, 2024
1 parent 17e24ce commit 873f702
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion GSChaos/CChaos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,12 @@ void CChaos::OnFrame(double time)
if (!volume)
volume = CVAR_GET_POINTER("volume");
else
ma_engine_set_volume(&miniAudio, volume->value + 0.25f);
{ // spaghetti
if (volume->value != 0.0f)
ma_engine_set_volume(&miniAudio, volume->value + 0.25f);
else
ma_engine_set_volume(&miniAudio, 0.0f);
}

m_bInGame = pEngfuncs->pfnGetLevelName()[0];

Expand Down

0 comments on commit 873f702

Please sign in to comment.