|
|
|
@ -1459,7 +1459,7 @@ void Game::setProtocolVersion(int version)
|
|
|
|
|
if(isOnline())
|
|
|
|
|
stdext::throw_exception("Unable to change protocol version while online");
|
|
|
|
|
|
|
|
|
|
if(version != 0 && (version < 760 || version > 1037))
|
|
|
|
|
if(version != 0 && (version < 760 || version > 1041))
|
|
|
|
|
stdext::throw_exception(stdext::format("Protocol version %d not supported", version));
|
|
|
|
|
|
|
|
|
|
m_features.reset();
|
|
|
|
@ -1572,6 +1572,10 @@ void Game::setProtocolVersion(int version)
|
|
|
|
|
enableFeature(Otc::GameHideNpcNames);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(version >= 1041) {
|
|
|
|
|
enableFeature(Otc::GamePremiumExpiration);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
m_protocolVersion = version;
|
|
|
|
|
|
|
|
|
|
Proto::buildMessageModesMap(version);
|
|
|
|
@ -1587,7 +1591,7 @@ void Game::setClientVersion(int version)
|
|
|
|
|
if(isOnline())
|
|
|
|
|
stdext::throw_exception("Unable to change client version while online");
|
|
|
|
|
|
|
|
|
|
if(version != 0 && (version < 760 || version > 1037))
|
|
|
|
|
if(version != 0 && (version < 760 || version > 1041))
|
|
|
|
|
stdext::throw_exception(stdext::format("Client version %d not supported", version));
|
|
|
|
|
|
|
|
|
|
m_clientVersion = version;
|
|
|
|
|