From 0c18e4ff28ae1205882c4eceecfbfa2c98d1cf45 Mon Sep 17 00:00:00 2001 From: Henrique Santiago Date: Thu, 23 Aug 2012 20:29:05 -0300 Subject: [PATCH] Add some extra inventory slots, fixed ext protocol bug --- src/otclient/const.h | 4 ++++ src/otclient/protocolgameparse.cpp | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/otclient/const.h b/src/otclient/const.h index 7b72a9d5..f803905f 100644 --- a/src/otclient/const.h +++ b/src/otclient/const.h @@ -119,6 +119,10 @@ namespace Otc InventorySlotRing, InventorySlotAmmo, InventorySlotPurse, + InventorySlotExt1, + InventorySlotExt2, + InventorySlotExt3, + InventorySlotExt4, LastInventorySlot }; diff --git a/src/otclient/protocolgameparse.cpp b/src/otclient/protocolgameparse.cpp index bdb60ade..545797f9 100644 --- a/src/otclient/protocolgameparse.cpp +++ b/src/otclient/protocolgameparse.cpp @@ -42,7 +42,8 @@ void ProtocolGame::parseMessage(const InputMessagePtr& msg) while(!msg->eof()) { opcode = msg->getU8(); - if(!m_gameInitialized && opcode >= Proto::GameServerFirstGameOpcode) { + // must be > so extended will be enabled before GameStart. + if(!m_gameInitialized && opcode > Proto::GameServerFirstGameOpcode) { g_game.processGameStart(); m_gameInitialized = true; }