landscape.cpp fixes
This commit is contained in:

committed by
Jonathan G Rennison

parent
44fe1ca00b
commit
7601720ff7
@@ -1209,8 +1209,7 @@ static bool RiverMakeWider(TileIndex tile, void *data)
|
||||
/* AyStar callback when an route has been found. */
|
||||
static void River_FoundEndNode(AyStar *aystar, OpenListNode *current)
|
||||
{
|
||||
uint cur_pos = 0;
|
||||
for (PathNode *path = ¤t->path; path != nullptr; path = path->parent, cur_pos++) {
|
||||
for (PathNode *path = ¤t->path; path != nullptr; path = path->parent) {
|
||||
TileIndex tile = path->node.tile;
|
||||
if (!IsWaterTile(tile)) {
|
||||
MakeRiver(tile, Random());
|
||||
|
Reference in New Issue
Block a user