Add some extra inventory slots, fixed ext protocol bug

This commit is contained in:
Henrique Santiago 2012-08-23 20:29:05 -03:00
父節點 112d584b66
當前提交 0c18e4ff28
共有 2 個文件被更改,包括 6 次插入1 次删除

查看文件

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

查看文件

@ -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;
}