mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r12564) -Fix: towns couldn't terraform when inflation rised terraform prices enough
This commit is contained in:
parent
21981bca85
commit
9532cde5ff
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user