mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-27 15:39:32 +01:00
(svn r9960) -Fix [FS#813]: road wasn't properly added when overbuilding a tram rails with normal rails to for a crossing.
This commit is contained in:
parent
710cc5a597
commit
2347c45d35
@ -300,6 +300,12 @@ int32 CmdBuildSingleRail(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
|||||||
RoadBits tram = GetRoadBits(tile, ROADTYPE_TRAM);
|
RoadBits tram = GetRoadBits(tile, ROADTYPE_TRAM);
|
||||||
switch (roadtypes) {
|
switch (roadtypes) {
|
||||||
default: break;
|
default: break;
|
||||||
|
case ROADTYPES_TRAM:
|
||||||
|
/* Tram crossings must always have road. */
|
||||||
|
SetRoadOwner(tile, ROADTYPE_ROAD, _current_player);
|
||||||
|
roadtypes |= ROADTYPES_ROAD;
|
||||||
|
break;
|
||||||
|
|
||||||
case ROADTYPES_ROADTRAM: if (road == tram) break;
|
case ROADTYPES_ROADTRAM: if (road == tram) break;
|
||||||
/* FALL THROUGH */
|
/* FALL THROUGH */
|
||||||
case ROADTYPES_ROADHWAY: // Road and highway are incompatible in this case
|
case ROADTYPES_ROADHWAY: // Road and highway are incompatible in this case
|
||||||
|
Loading…
Reference in New Issue
Block a user