removed unused BD style border color from main code base
authorHolger Schemel <holger.schemel@virtion.de>
Sat, 18 Jan 2025 10:59:03 +0000 (11:59 +0100)
committerHolger Schemel <holger.schemel@virtion.de>
Sat, 18 Jan 2025 10:59:03 +0000 (11:59 +0100)
src/files.c
src/main.h

index fdcd8e9ade87287f79be4d75b530a0194d268a18..1f9c52082b301638007672b3433291190b880fd8 100644 (file)
@@ -322,11 +322,6 @@ static struct LevelFileConfigInfo chunk_config_INFO[] =
     TYPE_INTEGER,                      CONF_VALUE_8_BIT(25),
     &li.bd_coloring_type,              GD_COLORING_TYPE_GRADIENTS
   },
-  {
-    -1,                                        -1,
-    TYPE_INTEGER,                      CONF_VALUE_32_BIT(3),
-    &li.bd_color_b,                    GD_C64_COLOR_BLACK
-  },
   {
     -1,                                        -1,
     TYPE_INTEGER,                      CONF_VALUE_32_BIT(4),
@@ -4545,8 +4540,6 @@ static void CopyNativeLevel_RND_to_BD(struct LevelInfo *level)
   cave->explosion_effect               = LEVEL_TO_CAVE(level->bd_explosion_turns_to);
   cave->explosion_3_effect             = LEVEL_TO_CAVE(level->bd_explosion_3_turns_to);
 
-  cave->color_b                                = level->bd_color_b;
-
   for (i = 0; i < MAX_LEVEL_COLORS; i++)
   {
     cave->color[i]                     = level->bd_color[i];
@@ -4733,8 +4726,6 @@ static void CopyNativeLevel_BD_to_RND(struct LevelInfo *level)
   level->bd_explosion_turns_to         = CAVE_TO_LEVEL(cave->explosion_effect);
   level->bd_explosion_3_turns_to       = CAVE_TO_LEVEL(cave->explosion_3_effect);
 
-  level->bd_color_b                    = cave->color_b;
-
   for (i = 0; i < MAX_LEVEL_COLORS; i++)
   {
     level->bd_color[i]                 = cave->color[i];
@@ -7951,7 +7942,6 @@ static void LoadLevel_InitColorSettings(struct LevelInfo *level)
 
   // copy level colors to native BD level
   // (this workaround is needed as long as color template handling is still BD specific)
-  cave->color_b = level->bd_color_b;
   for (i = 0; i < MAX_LEVEL_COLORS; i++)
   {
     cave->color[i]     = level->bd_color[i];
index b6d7d7c018a3ab1784c04c22518bbf8aecdadfa4..c4bd3c296114398cc243595d9bb70fd2e739b32b 100644 (file)
@@ -3946,7 +3946,6 @@ struct LevelInfo
   int bd_nitro_explosion_turns_to;     // BD nitro pack explosion changes to specified element
   int bd_explosion_turns_to;           // BD other explosions change to specified element
   int bd_explosion_3_turns_to;         // BD other explosions change to specified element, stage 3
-  int bd_color_b;                      // BD engine C64-style cave color (border)
   int bd_color[MAX_LEVEL_COLORS];      // BD engine C64-style cave colors
   int bd_base_color[MAX_LEVEL_COLORS]; // BD engine C64-style cave base colors (for gradients)