(svn r17414) -Codechange: only send/read the number of bits that can be actually useful when building industries

This commit is contained in:
rubidium
2009-09-04 20:04:54 +00:00
parent ebe53440be
commit f3372f6bc1
3 changed files with 12 additions and 14 deletions

View File

@@ -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)