diff options
author | rubidium <rubidium@openttd.org> | 2010-02-10 16:24:05 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-02-10 16:24:05 +0000 |
commit | 21bd2722cd89995370523385c213da32c8d47100 (patch) | |
tree | e7f3bb43657b1f8a59f89899dfc582d480bedad0 /src/network | |
parent | 78ce2858fc2704a5aafbc0b76cdb636338122f63 (diff) | |
download | openttd-21bd2722cd89995370523385c213da32c8d47100.tar.xz |
(svn r19081) -Codechange: make it possible to disable compilation of the AI+Squirrel
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; } |