mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 23:50:25 +00:00
(svn r10224) -Fix [FS#891]: the town road belongs to didn't get set properly when a town builds road over tram bits.
This commit is contained in:
parent
9e2e73f30b
commit
b11bf3e157
@ -505,6 +505,7 @@ do_clear:;
|
|||||||
if (existing == ROAD_NONE || rtt == ROAD_TILE_CROSSING) {
|
if (existing == ROAD_NONE || rtt == ROAD_TILE_CROSSING) {
|
||||||
SetRoadTypes(tile, GetRoadTypes(tile) | RoadTypeToRoadTypes(rt));
|
SetRoadTypes(tile, GetRoadTypes(tile) | RoadTypeToRoadTypes(rt));
|
||||||
SetRoadOwner(tile, rt, _current_player);
|
SetRoadOwner(tile, rt, _current_player);
|
||||||
|
if (_current_player == OWNER_TOWN && rt == ROADTYPE_ROAD) SetTownIndex(tile, p2);
|
||||||
}
|
}
|
||||||
if (rtt != ROAD_TILE_CROSSING) SetRoadBits(tile, existing | pieces, rt);
|
if (rtt != ROAD_TILE_CROSSING) SetRoadBits(tile, existing | pieces, rt);
|
||||||
} break;
|
} break;
|
||||||
|
Loading…
Reference in New Issue
Block a user