Tweak the bridge generation

This commit is contained in:
Andreas Schmitt
2021-06-15 14:39:21 +02:00
committed by Jonathan G Rennison
parent a1df69be87
commit 44fe1ca00b
2 changed files with 6 additions and 17 deletions

View File

@@ -1209,13 +1209,6 @@ static bool RiverMakeWider(TileIndex tile, void *data)
/* AyStar callback when an route has been found. */
static void River_FoundEndNode(AyStar *aystar, OpenListNode *current)
{
/* Count river length. */
uint length = 0;
for (PathNode *path = &current->path; path != nullptr; path = path->parent) {
length++;
}
uint cur_pos = 0;
for (PathNode *path = &current->path; path != nullptr; path = path->parent, cur_pos++) {
TileIndex tile = path->node.tile;