mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 03:15:41 +00:00
Core\Packet\Misc: Weather (#9648)
This commit is contained in:
committed by
GitHub
parent
e7a7c20c32
commit
fb249836e9
@@ -26,6 +26,7 @@
|
||||
#include "Weather.h"
|
||||
#include "WorldPacket.h"
|
||||
#include "WorldSession.h"
|
||||
#include "MiscPackets.h"
|
||||
#include <memory>
|
||||
|
||||
namespace WeatherMgr
|
||||
@@ -144,11 +145,8 @@ namespace WeatherMgr
|
||||
|
||||
void SendFineWeatherUpdateToPlayer(Player* player)
|
||||
{
|
||||
WorldPacket data(SMSG_WEATHER, (4 + 4 + 1));
|
||||
data << (uint32)WEATHER_STATE_FINE;
|
||||
data << (float)0.0f;
|
||||
data << uint8(0);
|
||||
player->GetSession()->SendPacket(&data);
|
||||
WorldPackets::Misc::Weather weather(WEATHER_STATE_FINE);
|
||||
player->SendDirectMessage(weather.Write());
|
||||
}
|
||||
|
||||
void Update(uint32 diff)
|
||||
|
||||
Reference in New Issue
Block a user