added parent link to custom artwork tree to go back to setup menu
[rocksndiamonds.git] / src / screens.c
index a716f5eaf7d1941623ed04d66823ff637cbe8774..36125cd573a898de20f0abc1ce7b2a977f8df5ce 100644 (file)
@@ -4355,9 +4355,16 @@ static void DrawChooseTree(TreeInfo **ti_ptr)
 
   if (strEqual((*ti_ptr)->subdir, STRING_TOP_DIRECTORY))
   {
-    SetGameStatus(GAME_MODE_MAIN);
+    if (game_status == GAME_MODE_SETUP)
+    {
+      execSetupArtwork();
+    }
+    else       // GAME_MODE_LEVELS
+    {
+      SetGameStatus(GAME_MODE_MAIN);
 
-    DrawMainMenu();
+      DrawMainMenu();
+    }
 
     return;
   }