Loading

Paste #pceswwkbb

  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, or a buoy. */
  3.     if (!IsTileType(tile_cur, MP_WATER)) {
  4.         if (IsTileType(tile_cur, MP_TUNNELBRIDGE)) {
  5.             if (GetTunnelBridgeTransportType(tile_cur) != TRANSPORT_WATER) return_cmd_error(STR_ERROR_SITE_UNSUITABLE);
  6.         } else if (IsTileType(tile_cur, MP_RAILWAY)) {
  7.             if (GetRailGroundType(tile_cur != RAIL_GROUND_WATER)) return_cmd_error(STR_ERROR_SITE_UNSUITABLE);
  8.         } else if (!IsBuoyTile(tile_cur)) return_cmd_error(STR_ERROR_SITE_UNSUITABLE);
  9.     } else if (!IsTileFlat(tile_cur) && !IsSlopeWithOneCornerRaised(GetTileSlope(tile_cur))) return_cmd_error(STR_ERROR_SITE_UNSUITABLE);

Version history

Revision # Author Created at
prho3dkro Anonymous 22 Jan 2019, 00:40:55 UTC Diff

Comments