Mercurial > hg > openttd
changeset 8062:69762b49a06b draft
(svn r11623) -Fix [FS#1533] (r11619): assert when train is going over two crossings next to each other
author | smatz <smatz@openttd.org> |
---|---|
date | Tue, 11 Dec 2007 22:50:13 +0000 |
parents | 489d3a68495d |
children | 84f26bedd0d3 |
files | src/train_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -3242,7 +3242,7 @@ if ((ts &= (ts >> 16)) == 0) { /* make a rail/road crossing red * do not make crossing red behind depot the train is entering */ - if (IsLevelCrossingTile(tile) && (GetRailTileType(v->tile) != RAIL_TILE_DEPOT || GetRailDepotDirection(v->tile) == dir)) { + if (IsLevelCrossingTile(tile) && (!IsTileDepotType(v->tile, TRANSPORT_RAIL) || GetRailDepotDirection(v->tile) == dir)) { if (!IsCrossingBarred(tile)) { BarCrossing(tile); SndPlayVehicleFx(SND_0E_LEVEL_CROSSING, v);