Partially inline BaseStation::GetClosestTile
commit48212449b714ecb2b1877e2dd639b93ed409180f
authorcirdan <cirdansw@gmail.com>
Tue, 19 Dec 2017 20:16:53 +0000 (19 21:16 +0100)
committercirdan <cirdansw@gmail.com>
Tue, 19 Dec 2017 20:16:53 +0000 (19 21:16 +0100)
tree0371c6d4f7f37ddd8463890f9ef0c5ba30fac42f
parentb3d09eca86def874410f848c4d53aaba43182f83
Partially inline BaseStation::GetClosestTile

Inline the initial call to BaseStation::GetTileArea from
BaseStation::GetClosestTile into each of its callers, and let
BaseStation::GetClosestTile handle the computed TileArea.
This allows, in turn, to inline the resulting calls to
BaseStation::GetTileArea, which makes for simpler code.
src/base_station_base.h
src/pathfinder/yapf/yapf_rail.cpp
src/pathfinder/yapf/yapf_road.cpp
src/pathfinder/yapf/yapf_ship.cpp