From 2fee7d195bfbabea0cb359582a8232351b6d3bac Mon Sep 17 00:00:00 2001 From: joschiwald Date: Sun, 9 Nov 2014 04:25:09 +0100 Subject: Core/NetworkIO: updated SMSG_UPDATE_WORLD_STATE, added SMSG_PVP_SEASON and added packet class for SMSG_INIT_WORLD_STATES --- src/server/game/Handlers/CharacterHandler.cpp | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'src/server/game/Handlers/CharacterHandler.cpp') diff --git a/src/server/game/Handlers/CharacterHandler.cpp b/src/server/game/Handlers/CharacterHandler.cpp index b27a398e989..dd6090a0d62 100644 --- a/src/server/game/Handlers/CharacterHandler.cpp +++ b/src/server/game/Handlers/CharacterHandler.cpp @@ -19,7 +19,10 @@ #include "AccountMgr.h" #include "ArenaTeam.h" #include "ArenaTeamMgr.h" +#include "AuthenticationPackets.h" #include "Battleground.h" +#include "BattlegroundPackets.h" +#include "BattlenetServerManager.h" #include "CalendarMgr.h" #include "CharacterPackets.h" #include "Chat.h" @@ -50,8 +53,6 @@ #include "World.h" #include "WorldPacket.h" #include "WorldSession.h" -#include "BattlenetServerManager.h" -#include "AuthenticationPackets.h" class LoginQueryHolder : public SQLQueryHolder { @@ -892,6 +893,20 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder* holder) TC_LOG_DEBUG("network", "WORLD: Sent motd (SMSG_MOTD)"); } + SendSetTimeZoneInformation(); + + // Send PVPSeason + { + WorldPackets::Battleground::PVPSeason season; + season.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); + + SendPacket(season.Write()); + TC_LOG_DEBUG("network", "WORLD: Sent PVPSeason"); + } + // send server info { if (sWorld->getIntConfig(CONFIG_ENABLE_SINFO_LOGIN) == 1) -- cgit v1.2.3