equal
deleted
inserted
replaced
1470 Axis axis = DiagDirToAxis(direction); |
1470 Axis axis = DiagDirToAxis(direction); |
1471 CommandCost res; |
1471 CommandCost res; |
1472 uint z_old; |
1472 uint z_old; |
1473 Slope tileh_old = GetTileSlope(tile, &z_old); |
1473 Slope tileh_old = GetTileSlope(tile, &z_old); |
1474 |
1474 |
1475 /* Check if new slope is valid for bridges in general (so we can savely call GetBridgeFoundation()) */ |
1475 /* Check if new slope is valid for bridges in general (so we can safely call GetBridgeFoundation()) */ |
1476 if ((direction == DIAGDIR_NW) || (direction == DIAGDIR_NE)) { |
1476 if ((direction == DIAGDIR_NW) || (direction == DIAGDIR_NE)) { |
1477 CheckBridgeSlopeSouth(axis, &tileh_old, &z_old); |
1477 CheckBridgeSlopeSouth(axis, &tileh_old, &z_old); |
1478 res = CheckBridgeSlopeSouth(axis, &tileh_new, &z_new); |
1478 res = CheckBridgeSlopeSouth(axis, &tileh_new, &z_new); |
1479 } else { |
1479 } else { |
1480 CheckBridgeSlopeNorth(axis, &tileh_old, &z_old); |
1480 CheckBridgeSlopeNorth(axis, &tileh_old, &z_old); |