Changeset - r16986:652ac23f0157
[Not reviewed]
master
0 1 0
rubidium - 13 years ago 2011-01-05 08:33:21
rubidium@openttd.org
(svn r21732) -Fix (r21728): show the "proper" error that the landscaping limit is reached instead of "already flat"
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/terraform_cmd.cpp
Show inline comments
 
@@ -422,6 +422,7 @@ CommandCost CmdLevelLand(TileIndex tile,
 

	
 
	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);
0 comments (0 inline, 0 general)