From b448b7c98d8db341a0546848f0b00a46385ef272 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 13 Dec 2010 11:21:53 +0000 Subject: (svn r21493) -Codechange: don't use the full 32 bits of the level land command to tell whether to raise, lower or keep the level of the first selected tile --- src/ai/api/ai_tile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ai') diff --git a/src/ai/api/ai_tile.cpp b/src/ai/api/ai_tile.cpp index 969ba9c0c..1fc9d9abf 100644 --- a/src/ai/api/ai_tile.cpp +++ b/src/ai/api/ai_tile.cpp @@ -234,7 +234,7 @@ EnforcePrecondition(false, start_tile < ::MapSize()); EnforcePrecondition(false, end_tile < ::MapSize()); - return AIObject::DoCommand(end_tile, start_tile, 0, CMD_LEVEL_LAND); + return AIObject::DoCommand(end_tile, start_tile, LM_LEVEL << 1, CMD_LEVEL_LAND); } /* static */ bool AITile::DemolishTile(TileIndex tile) -- cgit v1.2.3-54-g00ecf