summaryrefslogtreecommitdiff
path: root/train_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-02-01 06:32:03 +0000
committertron <tron@openttd.org>2006-02-01 06:32:03 +0000
commit9712d6f639c2a32aac05c22ff17cdb3ee32a977d (patch)
tree567a406e1224ab13f36027469339c6c42ada96f1 /train_cmd.c
parentf2c5567ab52345ef3830cea712d4ee7112ce8d7f (diff)
downloadopenttd-9712d6f639c2a32aac05c22ff17cdb3ee32a977d.tar.xz
(svn r3510) Fiddle with whitespace and parentheses
Diffstat (limited to 'train_cmd.c')
-rw-r--r--train_cmd.c7
1 files changed, 3 insertions, 4 deletions
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 */