X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Ftools.c;h=79c2bae71a65c82449c89f881ea05b29bcf63856;hp=af239591b40067a32c8fdd39cb0a1ae5ac229f6c;hb=84a28d5bf05056e1a70eeb37ff6b73aca21c5533;hpb=e81b8a9ef5610f3035b36212cf43283dcef32a61 diff --git a/src/tools.c b/src/tools.c index af239591..79c2bae7 100644 --- a/src/tools.c +++ b/src/tools.c @@ -2820,9 +2820,13 @@ void ShowEnvelope(int envelope_nr) int anim_mode = graphic_info[graphic].anim_mode; int main_anim_mode = (anim_mode == ANIM_NONE ? ANIM_VERTICAL|ANIM_HORIZONTAL: anim_mode == ANIM_DEFAULT ? ANIM_VERTICAL : anim_mode); + boolean overlay_enabled = GetOverlayEnabled(); game.envelope_active = TRUE; // needed for RedrawPlayfield() events + SetOverlayEnabled(FALSE); + UnmapAllGadgets(); + PlayMenuSoundStereo(sound_opening, SOUND_MIDDLE); if (anim_mode == ANIM_DEFAULT) @@ -2835,6 +2839,9 @@ void ShowEnvelope(int envelope_nr) else WaitForEventToContinue(); + RemapAllGadgets(); + SetOverlayEnabled(overlay_enabled); + PlayMenuSoundStereo(sound_closing, SOUND_MIDDLE); if (anim_mode != ANIM_NONE)