1
0
Fork 0

(svn r5913) -Fix (r5906): GetVehicleOutOfTunnelTile did assert when the vehicles tile location is the exit of the tunnel.

release/0.5
rubidium 2006-08-15 14:27:53 +00:00
parent 721987817e
commit c54b71d4ce
1 changed files with 4 additions and 4 deletions

View File

@ -1438,13 +1438,13 @@ TileIndex GetVehicleOutOfTunnelTile(const Vehicle *v)
byte z = v->z_pos;
dir = ReverseDiagDir(dir);
do {
tile += delta;
} while (
while (
!IsTunnelTile(tile) ||
GetTunnelDirection(tile) != dir ||
GetTileZ(tile) != z
);
) {
tile += delta;
}
return tile;
}