mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-27 08:29:11 +00:00
(svn r3906) Before removing a rail/setting the owner of a road to none check if there's a transport route at all under the bridge
This commit is contained in:
@@ -1298,7 +1298,7 @@ static void ChangeTileOwner_TunnelBridge(TileIndex tile, PlayerID old_player, Pl
|
|||||||
if (new_player != OWNER_SPECTATOR) {
|
if (new_player != OWNER_SPECTATOR) {
|
||||||
SetTileOwner(tile, new_player);
|
SetTileOwner(tile, new_player);
|
||||||
} else {
|
} else {
|
||||||
if ((_m[tile].m5 & 0xC0) == 0xC0) {
|
if ((_m[tile].m5 & 0xE0) == 0xE0) {
|
||||||
// the stuff BELOW the middle part is owned by the deleted player.
|
// the stuff BELOW the middle part is owned by the deleted player.
|
||||||
if (!(_m[tile].m5 & (1 << 4 | 1 << 3))) {
|
if (!(_m[tile].m5 & (1 << 4 | 1 << 3))) {
|
||||||
// convert railway into grass.
|
// convert railway into grass.
|
||||||
|
Reference in New Issue
Block a user