Add some extra inventory slots, fixed ext protocol bug
This commit is contained in:
parent
112d584b66
commit
0c18e4ff28
|
@ -119,6 +119,10 @@ namespace Otc
|
||||||
InventorySlotRing,
|
InventorySlotRing,
|
||||||
InventorySlotAmmo,
|
InventorySlotAmmo,
|
||||||
InventorySlotPurse,
|
InventorySlotPurse,
|
||||||
|
InventorySlotExt1,
|
||||||
|
InventorySlotExt2,
|
||||||
|
InventorySlotExt3,
|
||||||
|
InventorySlotExt4,
|
||||||
LastInventorySlot
|
LastInventorySlot
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue