diff options
author | rubidium <rubidium@openttd.org> | 2007-06-19 17:27:59 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-06-19 17:27:59 +0000 |
commit | b11bf3e1574fd72f0eca0756ff0a19ebdd5df4da (patch) | |
tree | 0ef53ffd483e379af2d0fbca27fc10606218b9d5 | |
parent | 9e2e73f30ba7ac442a27cee137e3174bc1bb7d99 (diff) | |
download | openttd-b11bf3e1574fd72f0eca0756ff0a19ebdd5df4da.tar.xz |
(svn r10224) -Fix [FS#891]: the town road belongs to didn't get set properly when a town builds road over tram bits.
-rw-r--r-- | src/road_cmd.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp index 78f763cdb..29827b46c 100644 --- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -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; |