From 24b60bec2eb1d8a56dc0220a887f5bbd3c8e76a7 Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Fri, 10 Aug 2012 01:01:12 -0300 Subject: [PATCH] support for protocol 961 --- modules/gamelib/game.lua | 2 +- src/otclient/game.cpp | 2 +- src/otclient/map.h | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/gamelib/game.lua b/modules/gamelib/game.lua index d41dc008..ac82923e 100644 --- a/modules/gamelib/game.lua +++ b/modules/gamelib/game.lua @@ -49,7 +49,7 @@ end function g_game.getSupportedProtocols() return { 810, 853, 854, 860, 861, 862, 870, 940, - 953, 954, 960 + 953, 954, 960, 961 } end diff --git a/src/otclient/game.cpp b/src/otclient/game.cpp index b914837e..94f72ba7 100644 --- a/src/otclient/game.cpp +++ b/src/otclient/game.cpp @@ -1128,7 +1128,7 @@ void Game::setClientVersion(int version) if(isOnline()) stdext::throw_exception("Unable to change client version while online"); - if(version < 810 || version > 960) + if(version < 810 || version > 961) stdext::throw_exception(stdext::format("Protocol version %d not supported", version)); m_features.reset(); diff --git a/src/otclient/map.h b/src/otclient/map.h index 11f7823c..85299f14 100644 --- a/src/otclient/map.h +++ b/src/otclient/map.h @@ -126,7 +126,8 @@ enum clientVersion_t CLIENT_VERSION_952 = 37, CLIENT_VERSION_953 = 38, CLIENT_VERSION_954 = 39, - CLIENT_VERSION_960 = 40 + CLIENT_VERSION_960 = 40, + CLIENT_VERSION_961 = 41 }; enum {