diff options
author | J0anJosep <juanjo.ng.83@gmail.com> | 2018-05-12 18:19:40 +0200 |
---|---|---|
committer | frosch <github@elsenhans.name> | 2018-06-27 23:14:30 +0200 |
commit | d01c09fb73aacd1b3c204829e7c574bbde09153f (patch) | |
tree | 5327845c01eeba8864925a38d97ab210b58f1850 /src/pathfinder/yapf/yapf_destrail.hpp | |
parent | 31ac11bddb71945bba57d0cefac620f455963455 (diff) | |
download | openttd-d01c09fb73aacd1b3c204829e7c574bbde09153f.tar.xz |
Codechange: Use HasTrack(dir) to improve code readability.
Diffstat (limited to 'src/pathfinder/yapf/yapf_destrail.hpp')
-rw-r--r-- | src/pathfinder/yapf/yapf_destrail.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pathfinder/yapf/yapf_destrail.hpp b/src/pathfinder/yapf/yapf_destrail.hpp index 7b3f1c5a1..1d1833fbf 100644 --- a/src/pathfinder/yapf/yapf_destrail.hpp +++ b/src/pathfinder/yapf/yapf_destrail.hpp @@ -172,7 +172,7 @@ public: && (GetRailStationTrack(tile) == TrackdirToTrack(td)); } - return (tile == m_destTile) && ((m_destTrackdirs & TrackdirToTrackdirBits(td)) != TRACKDIR_BIT_NONE); + return (tile == m_destTile) && HasTrackdir(m_destTrackdirs, td); } /** |