Mercurial > hg > openttd
changeset 15577:c5abee0724a9 draft
(svn r20237) -Fix (r20049): Check for disallowed level crossings also when converting rail.
author | michi_cc <michi_cc@openttd.org> |
---|---|
date | Wed, 28 Jul 2010 22:23:28 +0000 |
parents | f021a06a9ef4 |
children | 37254d8be435 |
files | src/rail_cmd.cpp |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -1417,6 +1417,10 @@ break; case MP_ROAD: if (!IsLevelCrossing(tile)) continue; + if (RailNoLevelCrossings(totype)) { + error.MakeError(STR_ERROR_CROSSING_DISALLOWED); + continue; + } break; case MP_TUNNELBRIDGE: if (GetTunnelBridgeTransportType(tile) != TRANSPORT_RAIL) continue;