(svn r21791) -Fix [FS#4407]: off-by-one-ish for the terraforming limit

This commit is contained in:
rubidium 2011-01-14 18:45:14 +00:00
parent c58a910c8e
commit c6b46725db

View File

@ -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);