mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-22 23:26:34 +00:00
(svn r5913) -Fix (r5906): GetVehicleOutOfTunnelTile did assert when the vehicles tile location is the exit of the tunnel.
This commit is contained in:
parent
721987817e
commit
c54b71d4ce
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user