Old revision #pwax4cjqa | New revision #p4gruwcin | ||
---|---|---|---|
2 | =================================================================== | 2 | =================================================================== |
3 | --- src/tunnelbridge_cmd.cpp (revision 27233) | 3 | --- src/tunnelbridge_cmd.cpp (revision 27233) |
4 | +++ src/tunnelbridge_cmd.cpp (working copy) | 4 | +++ src/tunnelbridge_cmd.cpp (working copy) |
5 | @@ -435,7 +435, | 5 | @@ -435,7 +435,8 @@ |
6 | 6 | ||
7 | switch (GetTileType(tile)) { | 7 | switch (GetTileType(tile)) { |
8 | case MP_WATER: | 8 | case MP_WATER: |
9 | - if (!IsWater(tile) && !IsCoast(tile)) goto not_valid_below; | 9 | - if (!IsWater(tile) && !IsCoast(tile)) goto not_valid_below; |
10 | + if (!IsWater(tile) && !IsCoast(tile) && !IsLock(tile)) goto not_valid_below; | 10 | + if (!IsWater(tile) && !IsCoast(tile) && !IsLock(tile)) goto not_valid_below; |
11 | + if (IsLock(tile) && GetLockPart(tile) == LOCK_PART_LOWER && GetTileMaxZ(tile) + 1 > z_start) return_cmd_error(STR_ERROR_BRIDGE_TOO_LOW_FOR_TERRAIN); | ||
11 | break; | 12 | break; |
12 | 13 | ||
13 | case MP_RAILWAY: | 14 | case MP_RAILWAY: |