From 12086eb9793c6aeb802f449fadc472fbe63611c5 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sat, 18 Jan 2025 11:59:03 +0100 Subject: [PATCH] removed unused BD style border color from main code base --- src/files.c | 10 ---------- src/main.h | 1 - 2 files changed, 11 deletions(-) diff --git a/src/files.c b/src/files.c index fdcd8e9a..1f9c5208 100644 --- a/src/files.c +++ b/src/files.c @@ -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]; diff --git a/src/main.h b/src/main.h index b6d7d7c0..c4bd3c29 100644 --- a/src/main.h +++ b/src/main.h @@ -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) -- 2.34.1