(svn r12564) -Fix: towns couldn't terraform when inflation rised terraform prices enough
authorsmatz
Fri, 04 Apr 2008 16:52:29 +0000
changeset 9314 9e5264b5e470
parent 9313 5593ea43406b
child 9315 336e6518acb3
(svn r12564) -Fix: towns couldn't terraform when inflation rised terraform prices enough
src/town_cmd.cpp
--- a/src/town_cmd.cpp	Fri Apr 04 16:32:27 2008 +0000
+++ b/src/town_cmd.cpp	Fri Apr 04 16:52:29 2008 +0000
@@ -758,7 +758,7 @@
 	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;
 }