Tweak the bridge generation
This commit is contained in:

committed by
Jonathan G Rennison

parent
a1df69be87
commit
44fe1ca00b
@@ -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 = ¤t->path; path != nullptr; path = path->parent) {
|
||||
length++;
|
||||
}
|
||||
|
||||
uint cur_pos = 0;
|
||||
for (PathNode *path = ¤t->path; path != nullptr; path = path->parent, cur_pos++) {
|
||||
TileIndex tile = path->node.tile;
|
||||
|
Reference in New Issue
Block a user