diff options
author | rubidium <rubidium@openttd.org> | 2009-07-21 22:37:10 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-21 22:37:10 +0000 |
commit | 8405d7d7e762546e3e78d1e0c16bb226c36266fa (patch) | |
tree | 11d3829fce669b25be64f203da5d93319a0c3cdc /src/yapf/follow_track.hpp | |
parent | 8083d67780d6a85c558080ec99dd2d24ae755d0f (diff) | |
download | openttd-8405d7d7e762546e3e78d1e0c16bb226c36266fa.tar.xz |
(svn r16907) -Codechange: make a more clear distinction between reservation functions that return a bool and that return TrackBits; GetRailStationReservation vs GetRailwayStationReservation, which one returns the bool and which one the TrackBits?
Diffstat (limited to 'src/yapf/follow_track.hpp')
-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 cce1769e5..42646afea 100644 --- a/src/yapf/follow_track.hpp +++ b/src/yapf/follow_track.hpp @@ -137,7 +137,7 @@ struct CFollowTrackT /* Check skipped station tiles as well. */ TileIndexDiff diff = TileOffsByDiagDir(m_exitdir); for (TileIndex tile = m_new_tile - diff * m_tiles_skipped; tile != m_new_tile; tile += diff) { - if (GetRailwayStationReservation(tile)) { + if (HasStationReservation(tile)) { m_new_td_bits = TRACKDIR_BIT_NONE; m_err = EC_RESERVED; return false; |