diff options
author | J0anJosep <juanjo.ng.83@gmail.com> | 2018-04-29 12:23:01 +0200 |
---|---|---|
committer | frosch <github@elsenhans.name> | 2018-06-27 23:14:30 +0200 |
commit | 31ac11bddb71945bba57d0cefac620f455963455 (patch) | |
tree | 6cd92f96ed2dd0ab601c961723aade3a6f18c4a5 /src/pathfinder/yapf/yapf_road.cpp | |
parent | 85ebe20a761127bebe873389d81f31502685a98a (diff) | |
download | openttd-31ac11bddb71945bba57d0cefac620f455963455.tar.xz |
Codechange: Increase readability of track functions and pathfinders.
Diffstat (limited to 'src/pathfinder/yapf/yapf_road.cpp')
-rw-r--r-- | src/pathfinder/yapf/yapf_road.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pathfinder/yapf/yapf_road.cpp b/src/pathfinder/yapf/yapf_road.cpp index 380b641da..b2ec6ae23 100644 --- a/src/pathfinder/yapf/yapf_road.cpp +++ b/src/pathfinder/yapf/yapf_road.cpp @@ -185,8 +185,7 @@ public: /** Called by YAPF to detect if node ends in the desired destination */ inline bool PfDetectDestination(Node &n) { - bool bDest = IsRoadDepotTile(n.m_segment_last_tile); - return bDest; + return IsRoadDepotTile(n.m_segment_last_tile); } inline bool PfDetectDestinationTile(TileIndex tile, Trackdir trackdir) |