Add some extra inventory slots, fixed ext protocol bug

This commit is contained in:
Henrique Santiago 2012-08-23 20:29:05 -03:00
parent 112d584b66
commit 0c18e4ff28
2 changed files with 6 additions and 1 deletions

View File

@ -119,6 +119,10 @@ namespace Otc
InventorySlotRing, InventorySlotRing,
InventorySlotAmmo, InventorySlotAmmo,
InventorySlotPurse, InventorySlotPurse,
InventorySlotExt1,
InventorySlotExt2,
InventorySlotExt3,
InventorySlotExt4,
LastInventorySlot LastInventorySlot
}; };

View File

@ -42,7 +42,8 @@ void ProtocolGame::parseMessage(const InputMessagePtr& msg)
while(!msg->eof()) { while(!msg->eof()) {
opcode = msg->getU8(); 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(); g_game.processGameStart();
m_gameInitialized = true; m_gameInitialized = true;
} }