Fix for Client 8.5

This commit is contained in:
Sam 2013-10-07 21:32:13 +02:00
parent 1b27a095a9
commit 4adfafc67e
2 changed files with 6 additions and 3 deletions

View File

@ -1442,8 +1442,11 @@ void Game::setProtocolVersion(int version)
enableFeature(Otc::GameChargeableItems); enableFeature(Otc::GameChargeableItems);
} }
if(version >= 854) { if(version >= 850) {
enableFeature(Otc::GameDoubleFreeCapacity); enableFeature(Otc::GameDoubleFreeCapacity);
}
if(version >= 854) {
enableFeature(Otc::GameCreatureEmblems); enableFeature(Otc::GameCreatureEmblems);
} }

View File

@ -273,8 +273,8 @@ void Map::saveOtbm(const std::string& fileName)
root->addU32(version); root->addU32(version);
Size mapSize = getSize(); Size mapSize = getSize();
root->addU16(mapSize.width()); root->addU16(65535);
root->addU16(mapSize.height()); root->addU16(65535);
root->addU32(g_things.getOtbMajorVersion()); root->addU32(g_things.getOtbMajorVersion());
root->addU32(g_things.getOtbMinorVersion()); root->addU32(g_things.getOtbMinorVersion());