mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 06:15:04 +00:00
(svn r21791) -Fix [FS#4407]: off-by-one-ish for the terraforming limit
This commit is contained in:
parent
c58a910c8e
commit
c6b46725db
@ -453,7 +453,10 @@ CommandCost CmdLevelLand(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
|
||||
* when it's near the terraforming limit. Even then, the estimation is
|
||||
* completely off due to it basically counting terraforming double, so it being
|
||||
* cut off earlier might even give a better estimate in some cases. */
|
||||
if (--limit <= 0) break;
|
||||
if (--limit <= 0) {
|
||||
had_success = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
cost.AddCost(ret);
|
||||
|
Loading…
Reference in New Issue
Block a user