(svn r4351) Simplify ReverseTrackdir() to use a simple arithmetic operation instead of a table lookup

This commit is contained in:
tron
2006-04-11 04:49:23 +00:00
parent f1da549c10
commit d38964e49a
2 changed files with 1 additions and 6 deletions

4
rail.c
View File

@@ -101,10 +101,6 @@ const Trackdir _dir_to_diag_trackdir[] = {
TRACKDIR_X_NE, TRACKDIR_Y_SE, TRACKDIR_X_SW, TRACKDIR_Y_NW,
};
const Trackdir _reverse_trackdir[] = {
TRACKDIR_X_SW, TRACKDIR_Y_NW, TRACKDIR_UPPER_W, TRACKDIR_LOWER_W, TRACKDIR_LEFT_N, TRACKDIR_RIGHT_N, INVALID_TRACKDIR, INVALID_TRACKDIR,
TRACKDIR_X_NE, TRACKDIR_Y_SE, TRACKDIR_UPPER_E, TRACKDIR_LOWER_E, TRACKDIR_LEFT_S, TRACKDIR_RIGHT_S
};
RailType GetTileRailType(TileIndex tile, Trackdir trackdir)
{