(svn r18710) -Fix [FS#3478]: the wrong town is mentioned in the error when trying to make one way roads of town owned roads

This commit is contained in:
rubidium
2010-01-04 11:35:12 +00:00
parent abb147d974
commit 3e481c4027
4 changed files with 28 additions and 5 deletions

View File

@@ -589,7 +589,7 @@ static inline bool CheckAllowRemoveTunnelBridge(TileIndex tile)
if (road_owner == OWNER_NONE || road_owner == OWNER_TOWN) road_owner = _current_company;
if (tram_owner == OWNER_NONE) tram_owner = _current_company;
return CheckOwnership(road_owner) && CheckOwnership(tram_owner);
return CheckOwnership(road_owner, tile) && CheckOwnership(tram_owner, tile);
}
case TRANSPORT_RAIL: