moved function call (no functional change)
authorHolger Schemel <info@artsoft.org>
Sat, 2 Dec 2023 12:11:55 +0000 (13:11 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 2 Dec 2023 12:12:40 +0000 (13:12 +0100)
src/tools.c

index ea314a3e603c39fbda20240fcb309845b16d1f84..c730e8510e89648d87e5540d2b466c319c857d11 100644 (file)
@@ -3339,8 +3339,6 @@ static void ShowEnvelopeRequest(char *text, unsigned int req_state, int action)
 
   if (action == ACTION_OPENING)
   {
-    DrawEnvelopeRequest(text, req_state);
-
     PlayMenuSoundStereo(sound_opening, SOUND_MIDDLE);
 
     if (anim_mode == ANIM_DEFAULT)
@@ -4973,6 +4971,7 @@ static boolean RequestEnvelope(char *text, unsigned int req_state)
 
   DoRequestBefore(req_state);
 
+  DrawEnvelopeRequest(text, req_state);
   ShowEnvelopeRequest(text, req_state, ACTION_OPENING);
 
   if (!(req_state & REQUEST_WAIT_FOR_INPUT))