diff options
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network_command.cpp | 4 | ||||
-rw-r--r-- | src/network/network_content.cpp | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/network/network_command.cpp b/src/network/network_command.cpp index 7e849cf9a..15a67b957 100644 --- a/src/network/network_command.cpp +++ b/src/network/network_command.cpp @@ -38,7 +38,11 @@ static CommandCallback * const _callback_table[] = { /* 0x0F */ CcPlaySound1E, /* 0x10 */ CcStation, /* 0x11 */ CcTerraform, +#ifdef ENABLE_AI /* 0x12 */ CcAI, +#else + /* 0x12 */ NULL, +#endif /* ENABLE_AI */ /* 0x13 */ CcCloneVehicle, /* 0x14 */ CcGiveMoney, /* 0x15 */ CcCreateGroup, diff --git a/src/network/network_content.cpp b/src/network/network_content.cpp index f18381f05..b5177d6ad 100644 --- a/src/network/network_content.cpp +++ b/src/network/network_content.cpp @@ -167,9 +167,11 @@ void ClientNetworkContentSocketHandler::RequestContentList(ContentType type) this->RequestContentList(CONTENT_TYPE_BASE_SOUNDS); this->RequestContentList(CONTENT_TYPE_SCENARIO); this->RequestContentList(CONTENT_TYPE_HEIGHTMAP); +#ifdef ENABLE_AI this->RequestContentList(CONTENT_TYPE_AI); - this->RequestContentList(CONTENT_TYPE_NEWGRF); this->RequestContentList(CONTENT_TYPE_AI_LIBRARY); +#endif /* ENABLE_AI */ + this->RequestContentList(CONTENT_TYPE_NEWGRF); return; } |