From: Holger Schemel Date: Tue, 24 Sep 2024 21:32:39 +0000 (+0200) Subject: minor formatting changes X-Git-Tag: 4.4.0.0-test-4~193 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=3bbdaacb20c81d21aa856ca4fc1b7ca07dc6d713;p=rocksndiamonds.git minor formatting changes --- diff --git a/src/game_bd/bd_c64import.c b/src/game_bd/bd_c64import.c index 3170b10f..faaa8d50 100644 --- a/src/game_bd/bd_c64import.c +++ b/src/game_bd/bd_c64import.c @@ -1814,7 +1814,7 @@ static int cave_copy_from_crdr_7(GdCave *cave, const byte *data, int remaining_b cave->acid_spread_ratio = data[0x38] / 255.0 * 1E6 + 0.5; cave->acid_eats_this = import_table_crdr[data[0x39]]; - switch(data[0x3a] & 3) + switch (data[0x3a] & 3) { case 0: cave->gravity = GD_MV_UP; break; case 1: cave->gravity = GD_MV_DOWN; break; @@ -2561,7 +2561,7 @@ List *gd_caveset_import_from_buffer (const byte *buf, size_t length) else snprintf(newcave->name, sizeof(newcave->name), _("Cave %c"), 'A' + cavenum); - switch(format) + switch (format) { case GD_FORMAT_BD1: case GD_FORMAT_BD1_ATARI: diff --git a/src/game_bd/bd_caveobject.c b/src/game_bd/bd_caveobject.c index 23beaf22..25de6c5e 100644 --- a/src/game_bd/bd_caveobject.c +++ b/src/game_bd/bd_caveobject.c @@ -66,7 +66,7 @@ char *gd_object_get_bdcff(const GdObject *object) case GD_MAZE: case GD_MAZE_UNICURSAL: case GD_MAZE_BRAID: - switch(object->type) + switch (object->type) { case GD_MAZE: type = "perfect"; diff --git a/src/game_bd/bd_colors.c b/src/game_bd/bd_colors.c index 7a9a35aa..76612012 100644 --- a/src/game_bd/bd_colors.c +++ b/src/game_bd/bd_colors.c @@ -658,7 +658,7 @@ GdColor gd_color_get_from_hsv(double h, double s, double v) q *= 255; t *= 255; - switch(hi) + switch (hi) { case 0: return gd_color_get_from_rgb(v, t, p); case 1: return gd_color_get_from_rgb(q, v, p);