summaryrefslogtreecommitdiff
path: root/src/train_cmd.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-11-20 15:44:24 +0000
committeralberth <alberth@openttd.org>2010-11-20 15:44:24 +0000
commitab50f74d7fa3c1c96de54012ccc197c4800901c8 (patch)
treefbee322b7dcec81c6a98a1ee923984d902e834f9 /src/train_cmd.cpp
parent38dc34828ea679e4952f9f30361382e29d2f2e06 (diff)
downloadopenttd-ab50f74d7fa3c1c96de54012ccc197c4800901c8.tar.xz
(svn r21273) -Codechange: Return values should start at the same line.
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r--src/train_cmd.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index 26b45b1f1..7fd874732 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -2703,11 +2703,8 @@ static void TrainEnterStation(Train *v, StationID station)
/* Check if the vehicle is compatible with the specified tile */
static inline bool CheckCompatibleRail(const Train *v, TileIndex tile)
{
- return
- IsTileOwner(tile, v->owner) && (
- !v->IsFrontEngine() ||
- HasBit(v->compatible_railtypes, GetRailType(tile))
- );
+ return IsTileOwner(tile, v->owner) &&
+ (!v->IsFrontEngine() || HasBit(v->compatible_railtypes, GetRailType(tile)));
}
struct RailtypeSlowdownParams {