diff options
author | rubidium <rubidium@openttd.org> | 2009-09-04 20:04:54 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-09-04 20:04:54 +0000 |
commit | 27738c6638c5ebdc2aec373617ee75202e719e62 (patch) | |
tree | 1fe09f7c517f2aa8697003e56e41057e3b316b4d /src/ai/api | |
parent | 925bada35a7ad71834630f4c9bbaef2c24bc4dfb (diff) | |
download | openttd-27738c6638c5ebdc2aec373617ee75202e719e62.tar.xz |
(svn r17414) -Codechange: only send/read the number of bits that can be actually useful when building industries
Diffstat (limited to 'src/ai/api')
-rw-r--r-- | src/ai/api/ai_industrytype.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_industrytype.cpp b/src/ai/api/ai_industrytype.cpp index 86e5269d7..ce19235c8 100644 --- a/src/ai/api/ai_industrytype.cpp +++ b/src/ai/api/ai_industrytype.cpp @@ -108,7 +108,7 @@ EnforcePrecondition(false, AIMap::IsValidTile(tile)); uint32 seed = ::InteractiveRandom(); - return AIObject::DoCommand(tile, (::InteractiveRandomRange(::GetIndustrySpec(industry_type)->num_table) << 16) | industry_type, seed, CMD_BUILD_INDUSTRY); + return AIObject::DoCommand(tile, (::InteractiveRandomRange(::GetIndustrySpec(industry_type)->num_table) << 8) | industry_type, seed, CMD_BUILD_INDUSTRY); } /* static */ bool AIIndustryType::ProspectIndustry(IndustryType industry_type) |