diff options
author | truelight <truelight@openttd.org> | 2004-09-05 16:15:22 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-09-05 16:15:22 +0000 |
commit | 10d54ac604b2d4d761877de1ceda07ceb3aa96bf (patch) | |
tree | ee4a252395acdf618350f3ff31b92a1b493f12ef /train_cmd.c | |
parent | 1846563cf89fc4cdd41691ddadac6b56dd8c2e58 (diff) | |
download | openttd-10d54ac604b2d4d761877de1ceda07ceb3aa96bf.tar.xz |
(svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs)
-Fix: some minor fixes around GetTileTrackStatus (blathijs)
Diffstat (limited to 'train_cmd.c')
-rw-r--r-- | train_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/train_cmd.c b/train_cmd.c index dd5bc6008..cb6306d91 100644 --- a/train_cmd.c +++ b/train_cmd.c @@ -2035,7 +2035,7 @@ static void TrainController(Vehicle *v) /* Get the status of the tracks in the new tile and mask * away the bits that aren't reachable. */ - ts = GetTileTrackStatus(gp.new_tile, 0) & _reachable_tracks[dir >> 1]; + ts = GetTileTrackStatus(gp.new_tile, TRANSPORT_RAIL) & _reachable_tracks[dir >> 1]; /* Combine the from & to directions. * Now, the lower byte contains the track status, and the byte at bit 16 contains @@ -2347,7 +2347,7 @@ static void TrainCheckIfLineEnds(Vehicle *v) /* Calculate next tile */ tile += _tileoffs_by_dir[t]; // determine the track status on the next tile. - ts = GetTileTrackStatus(tile, 0) & _reachable_tracks[t]; + ts = GetTileTrackStatus(tile, TRANSPORT_RAIL) & _reachable_tracks[t]; /* Calc position within the current tile ?? */ x = v->x_pos & 0xF; |