Mercurial > hg > openttd
changeset 8560:cbd74b092cdf draft
(svn r12138) -Fix: do not allow adding tram to rail-road crossing when there is a vehicle on it
author | smatz <smatz@openttd.org> |
---|---|
date | Thu, 14 Feb 2008 10:19:16 +0000 |
parents | 9a7fcf9f807f |
children | 75331afa9549 |
files | src/road_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -458,6 +458,7 @@ if (HasBit(GetRoadTypes(tile), rt)) return_cmd_error(STR_1007_ALREADY_BUILT); all_bits = GetCrossingRoadBits(tile); if (pieces & ComplementRoadBits(all_bits)) goto do_clear; + if (!EnsureNoVehicleOnGround(tile)) return CMD_ERROR; break; default: