diff options
author | Shauren <shauren.trinity@gmail.com> | 2020-09-19 12:44:42 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2020-09-19 12:44:42 +0200 |
commit | f922c6e7a46a7c712daaaef9b1a72ca865fbe94b (patch) | |
tree | 14a72dcc1176ed0f4758803df37811db18ffdc08 /src/server/game/Handlers/CharacterHandler.cpp | |
parent | c75d411a2f7d9992157e6a212c4d4ff15fff27b1 (diff) |
Core/PacketIO: Renamed a bunch of opcodes based on more research (only those added after 6.0)
Diffstat (limited to 'src/server/game/Handlers/CharacterHandler.cpp')
-rw-r--r-- | src/server/game/Handlers/CharacterHandler.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/server/game/Handlers/CharacterHandler.cpp b/src/server/game/Handlers/CharacterHandler.cpp index 0a54c0c7d53..9461ebdb276 100644 --- a/src/server/game/Handlers/CharacterHandler.cpp +++ b/src/server/game/Handlers/CharacterHandler.cpp @@ -978,13 +978,13 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder* holder) // Send PVPSeason { - WorldPackets::Battleground::PVPSeason season; - season.PreviousSeason = sWorld->getIntConfig(CONFIG_ARENA_SEASON_ID) - sWorld->getBoolConfig(CONFIG_ARENA_SEASON_IN_PROGRESS); + WorldPackets::Battleground::SeasonInfo seasonInfo; + seasonInfo.PreviousSeason = sWorld->getIntConfig(CONFIG_ARENA_SEASON_ID) - sWorld->getBoolConfig(CONFIG_ARENA_SEASON_IN_PROGRESS); if (sWorld->getBoolConfig(CONFIG_ARENA_SEASON_IN_PROGRESS)) - season.CurrentSeason = sWorld->getIntConfig(CONFIG_ARENA_SEASON_ID); + seasonInfo.CurrentSeason = sWorld->getIntConfig(CONFIG_ARENA_SEASON_ID); - SendPacket(season.Write()); + SendPacket(seasonInfo.Write()); } // send server info @@ -1089,7 +1089,7 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder* holder) stmt->setUInt64(0, pCurrChar->GetGUID().GetCounter()); GetQueryProcessor().AddCallback(CharacterDatabase.AsyncQuery(stmt)).WithPreparedCallback([this](PreparedQueryResult favoriteAuctionResult) { - WorldPackets::AuctionHouse::AuctionFavoriteItems favoriteItems; + WorldPackets::AuctionHouse::AuctionFavoriteList favoriteItems; if (favoriteAuctionResult) { favoriteItems.Items.reserve(favoriteAuctionResult->GetRowCount()); @@ -2647,12 +2647,12 @@ void WorldSession::SendCharCustomize(ResponseCodes result, WorldPackets::Charact { if (result == RESPONSE_SUCCESS) { - WorldPackets::Character::CharCustomizeResponse response(customizeInfo); + WorldPackets::Character::CharCustomizeSuccess response(customizeInfo); SendPacket(response.Write()); } else { - WorldPackets::Character::CharCustomizeFailed failed; + WorldPackets::Character::CharCustomizeFailure failed; failed.Result = uint8(result); failed.CharGUID = customizeInfo->CharGUID; SendPacket(failed.Write()); |