Skip to content

Commit c97335b

Browse files
authored
Merge pull request #1888 from ineveraskedforthis/main
Minor workaround to allow generation of DOD rivers
2 parents 201c6b8 + 7c42c1d commit c97335b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/map/map_borders.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,9 +1404,9 @@ void display_data::create_curved_river_vertices(parsers::scenario_building_conte
14041404
runner.done = true;
14051405
}
14061406
}
1407-
} else {
1408-
exists_running_runner = true;
1407+
} else {
14091408
if(is_river_merge(river_data[runner.x + runner.y * size_x])) {
1409+
exists_running_runner = true;
14101410
runner.waiting_for_merge = true;
14111411
} else {
14121412
bool first_child = true;
@@ -1427,6 +1427,8 @@ void display_data::create_curved_river_vertices(parsers::scenario_building_conte
14271427
width = runner.position->width;
14281428
}
14291429

1430+
exists_running_runner = true;
1431+
14301432
river_vertex* new_river_vertex = nullptr;
14311433

14321434
bool we_will_move_forward = false;
@@ -1462,6 +1464,7 @@ void display_data::create_curved_river_vertices(parsers::scenario_building_conte
14621464
}
14631465

14641466
if(next_position != nullptr) {
1467+
exists_running_runner = true;
14651468
runner.x = next_x;
14661469
runner.y = next_y;
14671470
runner.position = next_position;

0 commit comments

Comments
 (0)