10.94, 10.95 support

This commit is contained in:
Sam
2016-07-03 00:50:08 +02:00
parent 8992d40e37
commit 1ec3b65a3a
12 changed files with 143 additions and 23 deletions

View File

@@ -1492,7 +1492,7 @@ void Game::setProtocolVersion(int version)
if(isOnline())
stdext::throw_exception("Unable to change protocol version while online");
if(version != 0 && (version < 740 || version > 1093))
if(version != 0 && (version < 740 || version > 1095))
stdext::throw_exception(stdext::format("Protocol version %d not supported", version));
m_protocolVersion = version;
@@ -1510,7 +1510,7 @@ void Game::setClientVersion(int version)
if(isOnline())
stdext::throw_exception("Unable to change client version while online");
if(version != 0 && (version < 740 || version > 1093))
if(version != 0 && (version < 740 || version > 1095))
stdext::throw_exception(stdext::format("Client version %d not supported", version));
m_features.reset();
@@ -1674,6 +1674,9 @@ void Game::setClientVersion(int version)
enableFeature(Otc::GameIngameStoreHighlights);
}
if(version >= 1094) {
enableFeature(Otc::GameAdditionalSkills);
}
m_clientVersion = version;