summaryrefslogtreecommitdiff
path: root/pathfind.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-01 09:40:34 +0000
committertron <tron@openttd.org>2006-03-01 09:40:34 +0000
commit793613a2864a93a519a5b92ca7a8fb030be082ee (patch)
treedae13aff0b6fbd0ab4a8965999993d18ae8aa952 /pathfind.c
parentb404072ccc43fad529e8cf13532e646d3d4767d5 (diff)
downloadopenttd-793613a2864a93a519a5b92ca7a8fb030be082ee.tar.xz
(svn r3697) Rename DIAG1/DIAG2 to X resp. Y as this conveys a bit better in which direction a pieces of rail goes
Diffstat (limited to 'pathfind.c')
-rw-r--r--pathfind.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/pathfind.c b/pathfind.c
index 6da852771..9ece86052 100644
--- a/pathfind.c
+++ b/pathfind.c
@@ -623,18 +623,18 @@ static bool NtpCheck(NewTrackPathFinder *tpf, TileIndex tile, uint dir, uint len
static const uint16 _is_upwards_slope[15] = {
0, // no tileh
- (1 << TRACKDIR_DIAG1_SW) | (1 << TRACKDIR_DIAG2_NW), // 1
- (1 << TRACKDIR_DIAG1_SW) | (1 << TRACKDIR_DIAG2_SE), // 2
- (1 << TRACKDIR_DIAG1_SW), // 3
- (1 << TRACKDIR_DIAG1_NE) | (1 << TRACKDIR_DIAG2_SE), // 4
+ (1 << TRACKDIR_X_SW) | (1 << TRACKDIR_Y_NW), // 1
+ (1 << TRACKDIR_X_SW) | (1 << TRACKDIR_Y_SE), // 2
+ (1 << TRACKDIR_X_SW), // 3
+ (1 << TRACKDIR_X_NE) | (1 << TRACKDIR_Y_SE), // 4
0, // 5
- (1 << TRACKDIR_DIAG2_SE), // 6
+ (1 << TRACKDIR_Y_SE), // 6
0, // 7
- (1 << TRACKDIR_DIAG1_NE) | (1 << TRACKDIR_DIAG2_NW), // 8,
- (1 << TRACKDIR_DIAG2_NW), // 9
+ (1 << TRACKDIR_X_NE) | (1 << TRACKDIR_Y_NW), // 8,
+ (1 << TRACKDIR_Y_NW), // 9
0, //10
0, //11,
- (1 << TRACKDIR_DIAG1_NE), //12
+ (1 << TRACKDIR_X_NE), //12
0, //13
0, //14
};