summaryrefslogtreecommitdiff
path: root/src/ai/api
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-12-13 11:21:53 +0000
committerrubidium <rubidium@openttd.org>2010-12-13 11:21:53 +0000
commitb448b7c98d8db341a0546848f0b00a46385ef272 (patch)
tree24776ddd8f460e2b833af2d28ac972eb5b370bc9 /src/ai/api
parentc0999109a9aabce2aac15306782b9d2ae81af314 (diff)
downloadopenttd-b448b7c98d8db341a0546848f0b00a46385ef272.tar.xz
(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
Diffstat (limited to 'src/ai/api')
-rw-r--r--src/ai/api/ai_tile.cpp2
1 files changed, 1 insertions, 1 deletions
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)