Loading

Paste #pecr1uayk

  1.     WaterClass wc1 = IsWaterTile(tile) ? GetWaterClass(tile) : WATER_CLASS_CANAL;
  2.  
  3.     if (!IsWaterTile(tile)) {
  4.         ret = DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);
  5.         if (ret.Failed()) return ret;
  6.         cost.AddCost(ret);
  7.         cost.AddCost(_price[PR_BUILD_CANAL]);
  8.     } else {
  9.         if (wc1 == WATER_CLASS_CANAL && !IsTileType(tile, MP_INDUSTRY) && GetTileOwner(tile) != OWNER_NONE) {
  10.             ret = CheckTileOwnership(tile);
  11.             if (ret.Failed()) return ret;
  12.         }
  13.     }

Version history

Revision # Author Created at
pwaxzzmo8 Anonymous 14 Apr 2015, 16:41:23 UTC Diff

Comments