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/yapf_costrail.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/yapf_costrail.hpp')
-rw-r--r-- | src/yapf/yapf_costrail.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yapf/yapf_costrail.hpp b/src/yapf/yapf_costrail.hpp index faf439ff2..dcf9a602a 100644 --- a/src/yapf/yapf_costrail.hpp +++ b/src/yapf/yapf_costrail.hpp @@ -153,7 +153,7 @@ public: { TileIndexDiff diff = TileOffsByDiagDir(TrackdirToExitdir(ReverseTrackdir(trackdir))); for (; skipped >= 0; skipped--, tile += diff) { - if (GetRailwayStationReservation(tile)) return true; + if (HasStationReservation(tile)) return true; } return false; } |