diff options
author | yexo <yexo@openttd.org> | 2009-03-11 10:58:42 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-03-11 10:58:42 +0000 |
commit | efd06076888d05de15755e8346d1061c926c30a8 (patch) | |
tree | 994618389b4059d7032e9a25bc1ac126a77bee27 /src | |
parent | fbe159ab9e9a71e8cef3c0352ae97bc02a131be5 (diff) | |
download | openttd-efd06076888d05de15755e8346d1061c926c30a8.tar.xz |
(svn r15670) -Fix (r15601): The owner of both the road and of the tram tracks was checked, but not the owner of the road itself.
Diffstat (limited to 'src')
-rw-r--r-- | src/tunnelbridge_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp index 7e3dd707f..566239730 100644 --- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -597,7 +597,7 @@ static inline bool CheckAllowRemoveTunnelBridge(TileIndex tile) if (road_owner == OWNER_NONE || (road_owner == OWNER_TOWN && (_settings_game.construction.extra_dynamite || _cheats.magic_bulldozer.value))) road_owner = _current_company; if (tram_owner == OWNER_NONE) tram_owner = _current_company; - return CheckOwnership(road_owner) && CheckOwnership(tram_owner); + return (GetTileOwner(tile) == OWNER_NONE || CheckTileOwnership(tile)) && CheckOwnership(road_owner) && CheckOwnership(tram_owner); } case TRANSPORT_RAIL: |