diff options
author | rubidium <rubidium@openttd.org> | 2007-10-09 21:11:23 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-10-09 21:11:23 +0000 |
commit | f22c5ba602456282c0680393d9b248836fb3cf8c (patch) | |
tree | d69b1fe2ef975540df49a98c7d877a8a4287a30b /src/rail.cpp | |
parent | 038c98bee36f2f493cc4c1506e00e3498db4902e (diff) | |
download | openttd-f22c5ba602456282c0680393d9b248836fb3cf8c.tar.xz |
(svn r11237) -Codechange: reduce code duplication between GetRailFoundation() and CheckRailSlope(). Patch by frosch.
Diffstat (limited to 'src/rail.cpp')
-rw-r--r-- | src/rail.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rail.cpp b/src/rail.cpp index e1fa6792a..b172ea499 100644 --- a/src/rail.cpp +++ b/src/rail.cpp @@ -103,6 +103,10 @@ extern const Trackdir _dir_to_diag_trackdir[] = { TRACKDIR_X_NE, TRACKDIR_Y_SE, TRACKDIR_X_SW, TRACKDIR_Y_NW, }; +extern const TrackBits _corner_to_trackbits[] = { + TRACK_BIT_LEFT, TRACK_BIT_LOWER, TRACK_BIT_RIGHT, TRACK_BIT_UPPER, +}; + RailType GetTileRailType(TileIndex tile) { |