Changeset - r8818:b4e6a6865a64
[Not reviewed]
master
0 1 0
smatz - 17 years ago 2008-04-04 16:52:29
smatz@openttd.org
(svn r12564) -Fix: towns couldn't terraform when inflation rised terraform prices enough
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/town_cmd.cpp
Show inline comments
 
@@ -758,7 +758,7 @@ static bool TerraformTownTile(TileIndex 
 
	TILE_ASSERT(tile);
 

	
 
	CommandCost r = DoCommand(tile, edges, dir, DC_AUTO | DC_NO_WATER, CMD_TERRAFORM_LAND);
 
	if (CmdFailed(r) || r.GetCost() >= 126 * 16) return false;
 
	if (CmdFailed(r) || r.GetCost() >= (_price.terraform + 2) * 8) return false;
 
	DoCommand(tile, edges, dir, DC_AUTO | DC_NO_WATER | DC_EXEC, CMD_TERRAFORM_LAND);
 
	return true;
 
}
0 comments (0 inline, 0 general)