(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:
rubidium 2007-06-19 17:27:59 +00:00
parent 9e2e73f30b
commit b11bf3e157
1 changed files with 1 additions and 0 deletions

View File

@ -505,6 +505,7 @@ do_clear:;
if (existing == ROAD_NONE || rtt == ROAD_TILE_CROSSING) {
SetRoadTypes(tile, GetRoadTypes(tile) | RoadTypeToRoadTypes(rt));
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);
} break;