# HG changeset patch # User rubidium # Date 1182274079 0 # Node ID 1ea676d8eb7d12966a4d8e8248d94a654a1428c0 # Parent c3c45ee5125502f5099e0693048f6091f041b5c4 (svn r10224) -Fix [FS#891]: the town road belongs to didn't get set properly when a town builds road over tram bits. diff -r c3c45ee51255 -r 1ea676d8eb7d src/road_cmd.cpp --- a/src/road_cmd.cpp Tue Jun 19 17:13:25 2007 +0000 +++ b/src/road_cmd.cpp Tue Jun 19 17:27:59 2007 +0000 @@ -505,6 +505,7 @@ 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;