diff options
author | smatz <smatz@openttd.org> | 2007-12-16 19:30:42 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2007-12-16 19:30:42 +0000 |
commit | d56a690ba432c3ef483ac7a8072266349f2bfc96 (patch) | |
tree | 3d93af5bbe577ea3e66b1184cb89c1a934d6bcda /src/train_cmd.cpp | |
parent | cdee7d4cb8541657d99891ee59cb5caab6aaf444 (diff) | |
download | openttd-d56a690ba432c3ef483ac7a8072266349f2bfc96.tar.xz |
(svn r11649) -Codechange: some code can be simplified thanks to changes in r11642
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r-- | src/train_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index a3f551ec7..2b32faff3 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -3059,7 +3059,7 @@ static void DeleteLastWagon(Vehicle *v) if (GetVehicleTunnelBridge(v->tile, endtile) != NULL) return; // tunnel / bridge is busy - DiagDirection dir = IsTunnel(v->tile) ? GetTunnelBridgeDirection(v->tile) : GetTunnelBridgeDirection(v->tile); + DiagDirection dir = GetTunnelBridgeDirection(v->tile); /* v->direction is "random", so it cannot be used to determine the direction of the track */ UpdateSignalsOnSegment(v->tile, dir); @@ -3176,7 +3176,7 @@ static bool TrainCheckIfLineEnds(Vehicle *v) TileIndex tile = v->tile; if (IsTileType(tile, MP_TUNNELBRIDGE)) { - DiagDirection dir = IsTunnel(tile) ? GetTunnelBridgeDirection(tile) : GetTunnelBridgeDirection(tile); + DiagDirection dir = GetTunnelBridgeDirection(tile); if (DiagDirToDir(dir) == v->direction) return true; } |