From 10d54ac604b2d4d761877de1ceda07ceb3aa96bf Mon Sep 17 00:00:00 2001 From: truelight Date: Sun, 5 Sep 2004 16:15:22 +0000 Subject: (svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs) -Fix: some minor fixes around GetTileTrackStatus (blathijs) --- train_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'train_cmd.c') 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; -- cgit v1.2.3-54-g00ecf