Mercurial > hg > openttd
changeset 16996:0c0473c260b1 draft
(svn r21732) -Fix (r21728): show the "proper" error that the landscaping limit is reached instead of "already flat"
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 05 Jan 2011 08:33:21 +0000 |
parents | 64d87831925d |
children | 064417ad3e0b |
files | src/terraform_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/terraform_cmd.cpp +++ b/src/terraform_cmd.cpp @@ -422,6 +422,7 @@ const Company *c = Company::GetIfValid(_current_company); int limit = (c == NULL ? INT32_MAX : GB(c->terraform_limit, 16, 16)); + if (limit == 0) return_cmd_error(STR_ERROR_TERRAFORM_LIMIT_REACHED); TileArea ta(tile, p1); TileIterator *iter = HasBit(p2, 0) ? (TileIterator *)new DiagonalTileIterator(tile, p1) : new OrthogonalTileIterator(ta);