OpenTTD Source 20250924-master-gbec4e71d53
yapf_river_builder.h File Reference

Pathfinder for river building. More...

#include "../../tile_type.h"

Go to the source code of this file.

Functions

void YapfBuildRiver (TileIndex start_tile, TileIndex end_tile, TileIndex spring_tile, bool main_river)
 Builds a river from the start tile to the end tile.
 

Detailed Description

Pathfinder for river building.

Definition in file yapf_river_builder.h.

Function Documentation

◆ YapfBuildRiver()

void YapfBuildRiver ( TileIndex  start_tile,
TileIndex  end_tile,
TileIndex  spring_tile,
bool  main_river 
)

Builds a river from the start tile to the end tile.

Parameters
start_tileStart tile of the river.
end_tileEnd tile of the river.
spring_tilespring_tile Tile in which the spring of the river is located.
main_riverWhether it is a main river. Main rivers can get wider than one tile.

Definition at line 149 of file yapf_river_builder.cpp.

Referenced by FlowRiver().