From 4adfafc67e6e7084aba3f24f6f5130c0797c9f77 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 7 Oct 2013 21:32:13 +0200 Subject: [PATCH] Fix for Client 8.5 --- src/client/game.cpp | 5 ++++- src/client/mapio.cpp | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/client/game.cpp b/src/client/game.cpp index b39a0f29..dcc75d3e 100644 --- a/src/client/game.cpp +++ b/src/client/game.cpp @@ -1442,8 +1442,11 @@ void Game::setProtocolVersion(int version) enableFeature(Otc::GameChargeableItems); } - if(version >= 854) { + if(version >= 850) { enableFeature(Otc::GameDoubleFreeCapacity); + } + + if(version >= 854) { enableFeature(Otc::GameCreatureEmblems); } diff --git a/src/client/mapio.cpp b/src/client/mapio.cpp index 5da46593..121df0c9 100644 --- a/src/client/mapio.cpp +++ b/src/client/mapio.cpp @@ -273,8 +273,8 @@ void Map::saveOtbm(const std::string& fileName) root->addU32(version); Size mapSize = getSize(); - root->addU16(mapSize.width()); - root->addU16(mapSize.height()); + root->addU16(65535); + root->addU16(65535); root->addU32(g_things.getOtbMajorVersion()); root->addU32(g_things.getOtbMinorVersion());