X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fscreens.c;h=ed99fd4052445aab73157b8ad1abce93ea313670;hb=bb33b871657d1af6beda881e33b536512815aa9b;hp=3bf0c3005ca5fafb315e44c6fff9449a67c52fe9;hpb=78943068787ee6d63e1045df9d286d98b5a2912c;p=rocksndiamonds.git diff --git a/src/screens.c b/src/screens.c index 3bf0c300..ed99fd40 100644 --- a/src/screens.c +++ b/src/screens.c @@ -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;