X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ffiles.c;h=2842d1d4fa1eea88deee454ed6b5ba40b5ca2859;hb=18a8fd0a1f4a2999c0cdff4423a584be49ff868a;hp=e6e2281694d66a945891aa0c3abcb3a55d2cf850;hpb=79dff95b844bfab7bf35b0e4359e352df9b62034;p=rocksndiamonds.git diff --git a/src/files.c b/src/files.c index e6e22816..2842d1d4 100644 --- a/src/files.c +++ b/src/files.c @@ -321,6 +321,24 @@ static struct LevelFileConfigInfo chunk_config_INFO[] = &li.bd_line_shifting_borders, FALSE }, + { + -1, -1, + TYPE_BOOLEAN, CONF_VALUE_8_BIT(21), + &li.bd_wraparound_objects, FALSE + }, + + { + -1, -1, + TYPE_BOOLEAN, CONF_VALUE_8_BIT(22), + &li.bd_scan_first_and_last_row, TRUE + }, + + { + -1, -1, + TYPE_BOOLEAN, CONF_VALUE_8_BIT(23), + &li.bd_short_explosions, TRUE + }, + { -1, -1, -1, -1, @@ -3775,6 +3793,9 @@ static void CopyNativeLevel_RND_to_BD(struct LevelInfo *level) cave->diagonal_movements = level->bd_diagonal_movements; cave->lineshift = level->bd_line_shifting_borders; + cave->wraparound_objects = level->bd_wraparound_objects; + cave->border_scan_first_and_last = level->bd_scan_first_and_last_row; + cave->short_explosions = level->bd_short_explosions; strncpy(cave->name, level->name, sizeof(GdString)); cave->name[sizeof(GdString) - 1] = '\0'; @@ -3813,6 +3834,9 @@ static void CopyNativeLevel_BD_to_RND(struct LevelInfo *level) level->bd_diagonal_movements = cave->diagonal_movements; level->bd_line_shifting_borders = cave->lineshift; + level->bd_wraparound_objects = cave->wraparound_objects; + level->bd_scan_first_and_last_row = cave->border_scan_first_and_last; + level->bd_short_explosions = cave->short_explosions; char *cave_name = getStringPrint("%s / %d", cave->name, bd_level_nr + 1);