diff options
author | tron <tron@openttd.org> | 2007-01-24 17:58:07 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2007-01-24 17:58:07 +0000 |
commit | 2e6c663b94a699ed7ffffdf58960c88e7ec15958 (patch) | |
tree | 2389766c19c235fc68b0b25dec6e89d7338eca31 /src | |
parent | ba6b7c140392c8052f150db38afd01e74c815bd1 (diff) | |
download | openttd-2e6c663b94a699ed7ffffdf58960c88e7ec15958.tar.xz |
(svn r8392) -Fix
Use HASBIT() instead of implementing it manually
Diffstat (limited to 'src')
-rw-r--r-- | src/yapf/follow_track.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yapf/follow_track.hpp b/src/yapf/follow_track.hpp index 36cc75a4a..4c81caeb4 100644 --- a/src/yapf/follow_track.hpp +++ b/src/yapf/follow_track.hpp @@ -172,7 +172,7 @@ protected: // rail transport is possible only on compatible rail types if (IsRailTT()) { RailType rail_type = GetTileRailType(m_new_tile, TrackdirToTrack(DiagdirToDiagTrackdir(m_exitdir))); - if (((1 << rail_type) & m_veh->u.rail.compatible_railtypes) == 0) { + if (!HASBIT(m_veh->u.rail.compatible_railtypes, rail_type)) { // incompatible rail type return false; } |