feat: soundOn flag

This commit is contained in:
huaqo-games
2025-10-15 21:58:42 +02:00
parent e13094e7b7
commit 88afb54082
6 changed files with 34 additions and 16 deletions
+2 -2
View File
@@ -75,7 +75,7 @@ void InitGame(GameState *g, Window *window)
g->mouse = CreateMouse(0.10f, 5.0f, 10.0f, &g->textures[CURSOR]);
}
void UpdateGame(GameState *g, View *currentView, bool *running)
void UpdateGame(GameState *g, View *currentView, bool *running, Flags *flags)
{
if (GetFPS() <= 60)
{
@@ -95,7 +95,7 @@ void UpdateGame(GameState *g, View *currentView, bool *running)
}
for (int i = 0; i < SOUNDTRACK_COUNT; i++)
{
UpdateSoundtrack(&g->soundtracks[i]);
UpdateSoundtrack(&g->soundtracks[i], flags->soundOn);
}
UpdateMouse(&g->mouse, &g->camera);