Changeset - r10804:1a26a492827e
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-01-18 16:26:59
rubidium@openttd.org
(svn r15138) -Fix [FS#2542]: tile error location not reset when leveling land causing a tile to be highlighted when there was nothing to flatten.
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/terraform_cmd.cpp
Show inline comments
 
@@ -348,12 +348,14 @@ CommandCost CmdTerraformLand(TileIndex t
 
 * @return  error or cost of terraforming
 
 */
 
CommandCost CmdLevelLand(TileIndex tile, uint32 flags, uint32 p1, uint32 p2, const char *text)
 
{
 
	if (p1 >= MapSize()) return CMD_ERROR;
 

	
 
	_terraform_err_tile = INVALID_TILE;
 

	
 
	/* remember level height */
 
	uint oldh = TileHeight(p1);
 

	
 
	/* compute new height */
 
	uint h = oldh + p2;
 

	
0 comments (0 inline, 0 general)