File diff r26193:4bc7915a2156 → r26194:f7347205838e
src/terraform_cmd.cpp
Show inline comments
 
@@ -132,7 +132,7 @@ static std::tuple<CommandCost, TileIndex
 
	/* Store the height modification */
 
	TerraformSetHeightOfTile(ts, tile, height);
 

	
 
	CommandCost total_cost(EXPENSES_CONSTRUCTION);
 
	CommandCost total_cost(EXPENSES_T_LANDSCAPING);
 

	
 
	/* Increment cost */
 
	total_cost.AddCost(_price[PR_TERRAFORM]);
 
@@ -185,7 +185,7 @@ static std::tuple<CommandCost, TileIndex
 
 */
 
std::tuple<CommandCost, Money, TileIndex> CmdTerraformLand(DoCommandFlag flags, TileIndex tile, Slope slope, bool dir_up)
 
{
 
	CommandCost total_cost(EXPENSES_CONSTRUCTION);
 
	CommandCost total_cost(EXPENSES_T_LANDSCAPING);
 
	int direction = (dir_up ? 1 : -1);
 
	TerraformerState ts;
 

	
 
@@ -352,7 +352,7 @@ std::tuple<CommandCost, Money, TileIndex
 
	if (h > _settings_game.construction.map_height_limit) return { CommandCost(oldh == 0 ? STR_ERROR_ALREADY_AT_SEA_LEVEL : STR_ERROR_TOO_HIGH), 0, INVALID_TILE };
 

	
 
	Money money = GetAvailableMoneyForCommand();
 
	CommandCost cost(EXPENSES_CONSTRUCTION);
 
	CommandCost cost(EXPENSES_T_LANDSCAPING);
 
	CommandCost last_error(lm == LM_LEVEL ? STR_ERROR_ALREADY_LEVELLED : INVALID_STRING_ID);
 
	bool had_success = false;