moved function call (no functional change)
[rocksndiamonds.git] / src / tools.c
index 604e767cc4a8a3744fbd340a7d5360876434d02f..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,13 +4971,7 @@ static boolean RequestEnvelope(char *text, unsigned int req_state)
 
   DoRequestBefore(req_state);
 
-  // (replace with setting corresponding request background)
-  // SetDoorBackgroundImage(IMG_BACKGROUND_DOOR);
-  // SetDrawBackgroundMask(REDRAW_FIELD | REDRAW_DOOR_1);
-
-  // clear door drawing field
-  // DrawBackground(DX, DY, DXSIZE, DYSIZE);
-
+  DrawEnvelopeRequest(text, req_state);
   ShowEnvelopeRequest(text, req_state, ACTION_OPENING);
 
   if (!(req_state & REQUEST_WAIT_FOR_INPUT))