mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 09:39:21 +02:00
Update game.cpp
changed max supported protocol to 10.35
This commit is contained in:
parent
d64a682e74
commit
b6d8ede854
@ -1459,7 +1459,7 @@ void Game::setProtocolVersion(int version)
|
|||||||
if(isOnline())
|
if(isOnline())
|
||||||
stdext::throw_exception("Unable to change protocol version while online");
|
stdext::throw_exception("Unable to change protocol version while online");
|
||||||
|
|
||||||
if(version != 0 && (version < 760 || version > 1031))
|
if(version != 0 && (version < 760 || version > 1035))
|
||||||
stdext::throw_exception(stdext::format("Protocol version %d not supported", version));
|
stdext::throw_exception(stdext::format("Protocol version %d not supported", version));
|
||||||
|
|
||||||
m_features.reset();
|
m_features.reset();
|
||||||
@ -1581,7 +1581,7 @@ void Game::setClientVersion(int version)
|
|||||||
if(isOnline())
|
if(isOnline())
|
||||||
stdext::throw_exception("Unable to change client version while online");
|
stdext::throw_exception("Unable to change client version while online");
|
||||||
|
|
||||||
if(version != 0 && (version < 760 || version > 1031))
|
if(version != 0 && (version < 760 || version > 1035))
|
||||||
stdext::throw_exception(stdext::format("Client version %d not supported", version));
|
stdext::throw_exception(stdext::format("Client version %d not supported", version));
|
||||||
|
|
||||||
m_clientVersion = version;
|
m_clientVersion = version;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user