rnd-19990317-1-src
[rocksndiamonds.git] / src / screens.c
index 3bf0c3005ca5fafb315e44c6fff9449a67c52fe9..ed99fd4052445aab73157b8ad1abce93ea313670 100644 (file)
@@ -70,6 +70,9 @@ void DrawMainMenu()
     return;
   }
 
+  /* needed if last screen was the editor screen */
+  UndrawSpecialEditorDoor();
+
   /* map gadgets for main menu screen */
   MapTapeButtons();
 
@@ -130,7 +133,10 @@ void DrawMainMenu()
 
   OpenDoor(DOOR_CLOSE_1 | DOOR_OPEN_2);
 
+#if 0
   ClearEventQueue();
+#endif
+
 }
 
 void HandleMainMenu(int mx, int my, int dx, int dy, int button)
@@ -757,7 +763,7 @@ void HandleTypeName(int newxpos, KeySym key)
   }
 
   if (((key >= XK_A && key <= XK_Z) || (key >= XK_a && key <= XK_z)) && 
-      xpos < MAX_NAMELEN - 1)
+      xpos < MAX_PLAYER_NAME_LEN)
   {
     char ascii;