diff --git a/src/client/sound/ogg.c b/src/client/sound/ogg.c index 9d65cc52..74fc6303 100644 --- a/src/client/sound/ogg.c +++ b/src/client/sound/ogg.c @@ -774,10 +774,9 @@ OGG_Cmd(void) void OGG_SaveState(void) { - if (ogg_status != PLAY) + if (ogg_enabled->value != 1 || ogg_status != PLAY) { ogg_saved_state.saved = false; - return; } @@ -792,7 +791,7 @@ OGG_SaveState(void) void OGG_RecoverState(void) { - if (!ogg_saved_state.saved) + if (ogg_enabled->value != 1 || ogg_saved_state.saved != true) { return; }