File diff r8263:00e828e1ab1f → r8264:d493cb51fe8a
src/terraform_cmd.cpp
Show inline comments
 
@@ -2,21 +2,22 @@
 

	
 
/** @file terraform_cmd.cpp Commands related to terraforming. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "strings_type.h"
 
#include "table/strings.h"
 
#include "command_func.h"
 
#include "tile_map.h"
 
#include "tunnel_map.h"
 
#include "bridge_map.h"
 
#include "variables.h"
 
#include "functions.h"
 
#include "economy_func.h"
 

	
 
#include "table/strings.h"
 

	
 
/*
 
 * In one terraforming command all four corners of a initial tile can be raised/lowered (though this is not available to the player).
 
 * The maximal amount of height modifications is archieved when raising a complete flat land from sea level to MAX_TILE_HEIGHT or vice versa.
 
 * This affects all corners with a manhatten distance smaller than MAX_TILE_HEIGHT to one of the initial 4 corners.
 
 * Their maximal amount is computed to 4 * \sum_{i=1}^{h_max} i  =  2 * h_max * (h_max + 1).
 
 */