(svn r14582) -Fix [FS#2392]: blank box on cost estimation of levelling a flat area.

-Fix: make levelling, raising and lowering of an area behave the same.
This commit is contained in:
rubidium
2008-11-16 14:17:49 +00:00
parent ffa3ec54f9
commit cdfa2d68b1
3 changed files with 6 additions and 3 deletions

View File

@@ -359,6 +359,7 @@ CommandCost CmdLevelLand(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
/* Check range of destination height */
if (h > MAX_TILE_HEIGHT) return_cmd_error((oldh == 0) ? STR_1003_ALREADY_AT_SEA_LEVEL : STR_1004_TOO_HIGH);
if (p2 == 0) _error_message = STR_ALREADY_LEVELLED;
/* make sure sx,sy are smaller than ex,ey */
int ex = TileX(tile);