Loading

Paste #pyry0pdns

  1. /* It must not be a flat tile */
  2. switch(FEAT_INDUSTRYTILES, SELF, bulk_terminal_tile2_flat_check, nearby_tile_slope(0,0) == SLOPE_FLAT) {
  3.     1: return CB_RESULT_LOCATION_DISALLOW; return CB_RESULT_LOCATION_ALLOW;
  4. }
  5.  
  6. /* We allow on sea shores and on normal slopes - but not rivers and canals */
  7. switch(FEAT_INDUSTRYTILES, SELF, bulk_terminal_tile2_land_check, nearby_tile_water_class(0,0) == WATER_CLASS_NONE) {
  8.     1: bulk_terminal_tile2_flat_check;
  9.     return CB_RESULT_LOCATION_DISALLOW;
  10. }
  11. switch(FEAT_INDUSTRYTILES, SELF, bulk_terminal_tile2_location_check, nearby_tile_water_class(0,0) == WATER_CLASS_SEA) {
  12.     1: bulk_terminal_tile2_flat_check;
  13.     bulk_terminal_tile2_land_check;
  14. }

Comments