Loading

Paste #prho3dkro

  1.     /* Check whether the third tile is an aqueduct head, or a water tile
  2.      * with one corner raised with or without a rail track on the opposite
  3.      * corner, or a buoy. */
  4.     if (!IsTileType(tile_cur, MP_WATER)) {
  5.         if (IsTileType(tile_cur, MP_TUNNELBRIDGE)) {
  6.             if (GetTunnelBridgeTransportType(tile_cur) != TRANSPORT_WATER) return_cmd_error(STR_ERROR_SITE_UNSUITABLE);
  7.         } else if (IsTileType(tile_cur, MP_RAILWAY)) {
  8.             if (GetRailGroundType(tile_cur != RAIL_GROUND_WATER)) return_cmd_error(STR_ERROR_SITE_UNSUITABLE);
  9.         } else if (!IsBuoyTile(tile_cur)) return_cmd_error(STR_ERROR_SITE_UNSUITABLE);
  10.     } else if (!IsTileFlat(tile_cur) && !IsSlopeWithOneCornerRaised(GetTileSlope(tile_cur))) return_cmd_error(STR_ERROR_SITE_UNSUITABLE);

Comments