From 9712d6f639c2a32aac05c22ff17cdb3ee32a977d Mon Sep 17 00:00:00 2001 From: tron Date: Wed, 1 Feb 2006 06:32:03 +0000 Subject: (svn r3510) Fiddle with whitespace and parentheses --- train_cmd.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'train_cmd.c') diff --git a/train_cmd.c b/train_cmd.c index ba350753d..2e11c1654 100644 --- a/train_cmd.c +++ b/train_cmd.c @@ -1551,6 +1551,7 @@ static void AdvanceWagons(Vehicle *v, bool before) } } + static void ReverseTrainDirection(Vehicle *v) { int l = 0, r = -1; @@ -1559,7 +1560,6 @@ static void ReverseTrainDirection(Vehicle *v) if (IsTileDepotType(v->tile, TRANSPORT_RAIL)) InvalidateWindow(WC_VEHICLE_DEPOT, v->tile); - /* Check if we were approaching a rail/road-crossing */ { TileIndex tile = v->tile; @@ -2013,12 +2013,11 @@ typedef struct TrainTrackFollowerData { static bool NtpCallbFindStation(TileIndex tile, TrainTrackFollowerData *ttfd, int track, uint length) { // heading for nowhere? - if (ttfd->dest_coords == 0) - return false; + if (ttfd->dest_coords == 0) return false; // did we reach the final station? if ((ttfd->station_index == INVALID_STATION && tile == ttfd->dest_coords) || - (IsTileType(tile, MP_STATION) && IS_BYTE_INSIDE(_m[tile].m5, 0, 8) && _m[tile].m2 == ttfd->station_index)) { + (IsTileType(tile, MP_STATION) && IS_BYTE_INSIDE(_m[tile].m5, 0, 8) && _m[tile].m2 == ttfd->station_index)) { /* We do not check for dest_coords if we have a station_index, * because in that case the dest_coords are just an * approximation of where the station is */ -- cgit v1.2.3-54-g00ecf