summaryrefslogtreecommitdiff
path: root/src/road_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-06-19 17:27:59 +0000
committerrubidium <rubidium@openttd.org>2007-06-19 17:27:59 +0000
commitb11bf3e1574fd72f0eca0756ff0a19ebdd5df4da (patch)
tree0ef53ffd483e379af2d0fbca27fc10606218b9d5 /src/road_cmd.cpp
parent9e2e73f30ba7ac442a27cee137e3174bc1bb7d99 (diff)
downloadopenttd-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.
Diffstat (limited to 'src/road_cmd.cpp')
-rw-r--r--src/road_cmd.cpp1
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;