From 61597affd490527720c9d165eace66e4a0995c3e Mon Sep 17 00:00:00 2001 From: sanctum32 Date: Mon, 30 Dec 2013 00:30:58 +0200 Subject: [PATCH] [12760] Implemented CMSG_LOAD_SCREEN, fix issue#4 --- src/game/CharacterHandler.cpp | 8 ++++++++ src/game/Opcodes.cpp | 1 + src/game/Opcodes.h | 1 + src/game/WorldSession.h | 1 + src/shared/revision_nr.h | 2 +- 5 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/game/CharacterHandler.cpp b/src/game/CharacterHandler.cpp index 1da74c1c1..0cd148cfc 100644 --- a/src/game/CharacterHandler.cpp +++ b/src/game/CharacterHandler.cpp @@ -1437,3 +1437,11 @@ void WorldSession::HandleSetCurrencyFlagsOpcode(WorldPacket& recv_data) GetPlayer()->SetCurrencyFlags(currencyId, uint8(flags)); } +void WorldSession::HandleLoadScreenOpcode(WorldPacket& recvPacket) +{ + DEBUG_LOG("CMSG_LOAD_SCREEN"); + uint32 mapID; + + recvPacket >> mapID; + recvPacket.ReadBit(); +} diff --git a/src/game/Opcodes.cpp b/src/game/Opcodes.cpp index 7c4da1895..5a5f0a464 100644 --- a/src/game/Opcodes.cpp +++ b/src/game/Opcodes.cpp @@ -492,6 +492,7 @@ void InitializeOpcodes() OPCODE(CMSG_PUSHQUESTTOPARTY, STATUS_LOGGEDIN, PROCESS_THREADUNSAFE, &WorldSession::HandlePushQuestToParty ); OPCODE(CMSG_LIST_INVENTORY, STATUS_LOGGEDIN, PROCESS_THREADUNSAFE, &WorldSession::HandleListInventoryOpcode ); OPCODE(SMSG_LIST_INVENTORY, STATUS_NEVER, PROCESS_INPLACE, &WorldSession::Handle_ServerSide ); + OPCODE(CMSG_LOAD_SCREEN, STATUS_AUTHED, PROCESS_THREADUNSAFE, &WorldSession::HandleLoadScreenOpcode ); OPCODE(CMSG_SELL_ITEM, STATUS_LOGGEDIN, PROCESS_THREADUNSAFE, &WorldSession::HandleSellItemOpcode ); OPCODE(SMSG_SELL_ITEM, STATUS_NEVER, PROCESS_INPLACE, &WorldSession::Handle_ServerSide ); OPCODE(CMSG_BUY_ITEM, STATUS_LOGGEDIN, PROCESS_THREADUNSAFE, &WorldSession::HandleBuyItemOpcode ); diff --git a/src/game/Opcodes.h b/src/game/Opcodes.h index 54ff0f69d..00952520e 100644 --- a/src/game/Opcodes.h +++ b/src/game/Opcodes.h @@ -1429,6 +1429,7 @@ enum Opcodes CMSG_OBJECT_UPDATE_FAILED = 0x3808, // 4.3.4 15595 CMSG_REFORGE_ITEM = 0x331A, // 4.3.4 15595 SMSG_REFORGE_RESULT = 0x58A4, // 4.3.4 15595 + CMSG_LOAD_SCREEN = 0x2422, // 4.3.4 15595 }; #define MAX_OPCODE_TABLE_SIZE 0xFFFF diff --git a/src/game/WorldSession.h b/src/game/WorldSession.h index b11d0a429..49183725b 100644 --- a/src/game/WorldSession.h +++ b/src/game/WorldSession.h @@ -893,6 +893,7 @@ class MANGOS_DLL_SPEC WorldSession void HandleReforgeItemOpcode(WorldPacket& recvData); void SendReforgeResult(bool success); + void HandleLoadScreenOpcode(WorldPacket& recvPacket); private: // private trade methods void moveItems(Item* myItems[], Item* hisItems[]); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 01a0511c7..28bc31bee 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "12759" + #define REVISION_NR "12760" #endif // __REVISION_NR_H__