diff options
author | rubidium <rubidium@openttd.org> | 2010-08-02 22:10:05 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-02 22:10:05 +0000 |
commit | 49cee72fa4af41abd2d4a3c19928fcce36b7c10d (patch) | |
tree | 1fa3703d3d95293570a1da622e487f1bc9e0140d /src/ai | |
parent | f2d71c1196f0fcd19b54ba9c02b59369b1853508 (diff) | |
download | openttd-49cee72fa4af41abd2d4a3c19928fcce36b7c10d.tar.xz |
(svn r20328) -Codechange: unify the unmovable related commands and make building lighthouses/transmitters actually happen via a command
Diffstat (limited to 'src/ai')
-rw-r--r-- | src/ai/api/ai_company.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ai/api/ai_company.cpp b/src/ai/api/ai_company.cpp index f6fe91878..f9c352d9d 100644 --- a/src/ai/api/ai_company.cpp +++ b/src/ai/api/ai_company.cpp @@ -20,6 +20,7 @@ #include "../../tile_map.h" #include "../../string_func.h" #include "../../settings_func.h" +#include "../../unmovable_type.h" #include "table/strings.h" /* static */ AICompany::CompanyID AICompany::ResolveCompanyID(AICompany::CompanyID company) @@ -162,7 +163,7 @@ { EnforcePrecondition(false, ::IsValidTile(tile)); - return AIObject::DoCommand(tile, 0, 0, CMD_BUILD_COMPANY_HQ); + return AIObject::DoCommand(tile, UNMOVABLE_HQ, 0, CMD_BUILD_UNMOVABLE); } /* static */ TileIndex AICompany::GetCompanyHQ(CompanyID company) |