removed unused messages for "colors" and "engine" tabs in level editor
authorHolger Schemel <info@artsoft.org>
Fri, 24 Jan 2025 21:05:50 +0000 (22:05 +0100)
committerHolger Schemel <info@artsoft.org>
Fri, 24 Jan 2025 14:06:38 +0000 (15:06 +0100)
src/editor.c

index abf9bc688d45da84310ed9dc12733a1f72039fd9..e465b3f90a93cd11ad5b6f40e072daf590ed4674 100644 (file)
@@ -12239,20 +12239,6 @@ static void DrawLevelConfigEngine(void)
 {
   int i;
 
-  if (level.game_engine_type != GAME_ENGINE_TYPE_BD)
-  {
-    int font_nr = FONT_TEXT_1;
-    int font_height = getFontHeight(font_nr);
-    int yoffset_above = font_height + ED_GADGET_LINE_DISTANCE;
-    int xpos = ED_LEVEL_SETTINGS_X(0);
-    int ypos = ED_LEVEL_SETTINGS_Y(0);
-
-    PrintInfoText("No engine specific config available.", font_nr, xpos, ypos - yoffset_above);
-    PrintInfoText("(Only available for Boulder Dash.)", font_nr, xpos, ypos);
-
-    return;
-  }
-
   // draw counter gadgets
   if (level.bd_scheduling_type == GD_SCHEDULING_MILLISECONDS)
   {
@@ -12365,20 +12351,6 @@ static void DrawLevelConfigColors(void)
 {
   int i;
 
-  if (!anyImagehasColorTemplate())
-  {
-    int font_nr = FONT_TEXT_1;
-    int font_height = getFontHeight(font_nr);
-    int yoffset_above = font_height + ED_GADGET_LINE_DISTANCE;
-    int xpos = ED_LEVEL_SETTINGS_X(0);
-    int ypos = ED_LEVEL_SETTINGS_Y(0);
-
-    PrintInfoText("No level specific colors available.", font_nr, xpos, ypos - yoffset_above);
-    PrintInfoText("(Not supported by graphics set.)", font_nr, xpos, ypos);
-
-    return;
-  }
-
   // when using native BD engine with "classic" template colors, skip the two extra colors
   int skip = (level.game_engine_type == GAME_ENGINE_TYPE_BD &&
               level.bd_coloring_type == GD_COLORING_TYPE_SINGLE &&