summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-04-04 16:52:29 +0000
committersmatz <smatz@openttd.org>2008-04-04 16:52:29 +0000
commit8a2762978c9d315a30a146bcb47b7d39ee5ca582 (patch)
tree5dcd56fe152e4446a49d3670559d72c9e491d8f5 /src
parentc49f813e7f3aca43fd3ceb9301caf71ded12e6c5 (diff)
downloadopenttd-8a2762978c9d315a30a146bcb47b7d39ee5ca582.tar.xz
(svn r12564) -Fix: towns couldn't terraform when inflation rised terraform prices enough
Diffstat (limited to 'src')
-rw-r--r--src/town_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp
index f4c304a64..350811bb9 100644
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -758,7 +758,7 @@ static bool TerraformTownTile(TileIndex tile, int edges, int dir)
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;
}