Mercurial > hg > openttd
changeset 17054:edf90c14dda2 draft
(svn r21791) -Fix [FS#4407]: off-by-one-ish for the terraforming limit
author | rubidium <rubidium@openttd.org> |
---|---|
date | Fri, 14 Jan 2011 18:45:14 +0000 |
parents | 250cc232b8ee |
children | 94e01185a2d0 |
files | src/terraform_cmd.cpp |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/terraform_cmd.cpp +++ b/src/terraform_cmd.cpp @@ -453,7 +453,10 @@ * 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);