added clearing event queue after fading and after door/envelope requests
[rocksndiamonds.git] / src / screens.c
index 3ffcb48493dcb0b11ae1bd0b2196b08d2b2fc8c2..758e536d29a16b17e97e7bdc095e29d094ea8f6e 100644 (file)
@@ -1642,6 +1642,7 @@ void DrawMainMenu()
 
   DrawCursorAndText_Main(-1, FALSE, FALSE);
   DrawPreviewLevelInitial();
+  DrawNetworkPlayers();
 
   HandleMainMenu(0, 0, 0, 0, MB_MENU_INITIALIZE);
 
@@ -6449,12 +6450,9 @@ static void changeSetupValue(int screen_pos, int setup_info_pos_raw, int dx)
   {
     network.enabled = setup.network_mode;
 
-    SetGameStatus(GAME_MODE_LOADING);
-    SetDrawBackgroundMask(REDRAW_NONE);
-
     FadeOut(REDRAW_ALL);
 
-    ClearRectangle(drawto, 0, 0, WIN_XSIZE, WIN_YSIZE);
+    ClearField();
 
     FadeIn(REDRAW_ALL);
 
@@ -6463,11 +6461,6 @@ static void changeSetupValue(int screen_pos, int setup_info_pos_raw, int dx)
     else
       DisconnectFromNetworkServer();
 
-    SetGameStatus(GAME_MODE_SETUP);
-    SetDrawBackgroundMask(REDRAW_FIELD);
-
-    redraw_mask = REDRAW_ALL;
-
     DrawSetupScreen();
   }
 }