rnd-19981215-1
[rocksndiamonds.git] / src / screens.c
index 0da69783facb5efcaa718d3191a2a785a44ed3c9..fbdc116c0787f30b8654f222c190e856bbd91875 100644 (file)
@@ -58,6 +58,14 @@ void DrawMainMenu()
   int i;
   char *name_text = (!options.network && setup.team_mode ? "Team:" : "Name:");
 
+  /* needed if last screen was the playing screen, invoked from level editor */
+  if (level_editor_test_game)
+  {
+    game_status = LEVELED;
+    DrawLevelEd();
+    return;
+  }
+
   /* needed if last screen was the level editor */
   UnmapLevelEditorControlButtons();