From 7c42c1d020f7be73f99394cb2e10e31ddfbf5fdd Mon Sep 17 00:00:00 2001 From: ineveraskedforthis Date: Sat, 1 Feb 2025 12:00:23 +0300 Subject: [PATCH] small change to rivers gen --- src/map/map_borders.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/map/map_borders.cpp b/src/map/map_borders.cpp index 7ffc60f2c..0724823aa 100644 --- a/src/map/map_borders.cpp +++ b/src/map/map_borders.cpp @@ -1404,9 +1404,9 @@ void display_data::create_curved_river_vertices(parsers::scenario_building_conte runner.done = true; } } - } else { - exists_running_runner = true; + } else { if(is_river_merge(river_data[runner.x + runner.y * size_x])) { + exists_running_runner = true; runner.waiting_for_merge = true; } else { bool first_child = true; @@ -1427,6 +1427,8 @@ void display_data::create_curved_river_vertices(parsers::scenario_building_conte width = runner.position->width; } + exists_running_runner = true; + river_vertex* new_river_vertex = nullptr; bool we_will_move_forward = false; @@ -1462,6 +1464,7 @@ void display_data::create_curved_river_vertices(parsers::scenario_building_conte } if(next_position != nullptr) { + exists_running_runner = true; runner.x = next_x; runner.y = next_y; runner.position = next_position;