summaryrefslogtreecommitdiff
path: root/tunnelbridge_cmd.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-08-11 22:07:08 +0000
committerdarkvater <darkvater@openttd.org>2004-08-11 22:07:08 +0000
commitf42201496093f04220e58b1c4cd4d69531839de4 (patch)
treebbd3f2f0084e8bba00dd232cb07236b5bebd9d6a /tunnelbridge_cmd.c
parent6679afc48a1bec985b6687dee105730b89682224 (diff)
downloadopenttd-f42201496093f04220e58b1c4cd4d69531839de4.tar.xz
(svn r23) -Some omments on the code (blathijs)
Diffstat (limited to 'tunnelbridge_cmd.c')
-rw-r--r--tunnelbridge_cmd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c
index af6c31f42..672936b36 100644
--- a/tunnelbridge_cmd.c
+++ b/tunnelbridge_cmd.c
@@ -1388,6 +1388,7 @@ static uint32 VehicleEnter_TunnelBridge(Vehicle *v, uint tile, int x, int y)
}
if (dir == (vdir^2) && fc == _tunnel_fractcoord_3[dir] && z == 0) {
+ /* We're at the tunnel exit ?? */
v->tile = tile;
v->u.rail.track = _exit_tunnel_track[dir];
v->vehstatus &= ~VS_HIDDEN;
@@ -1413,6 +1414,7 @@ static uint32 VehicleEnter_TunnelBridge(Vehicle *v, uint tile, int x, int y)
}
if (dir == (vdir^2) && (
+ /* We're at the tunnel exit ?? */
fc == _tunnel_fractcoord_6[dir] ||
fc == _tunnel_fractcoord_7[dir]) &&
z == 0) {