mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
Update CMSG_CALENDAR_GET_CALENDAR structure and re-enable for 3.0.8.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
9ba229213f
commit
fb317f5aaa
1 changed files with 3 additions and 5 deletions
|
|
@ -24,13 +24,10 @@
|
||||||
#include "Opcodes.h"
|
#include "Opcodes.h"
|
||||||
#include "InstanceSaveMgr.h"
|
#include "InstanceSaveMgr.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void WorldSession::HandleCalendarGetCalendar(WorldPacket &recv_data)
|
void WorldSession::HandleCalendarGetCalendar(WorldPacket &recv_data)
|
||||||
{
|
{
|
||||||
sLog.outDebug("WORLD: CMSG_CALENDAR_GET_CALENDAR");
|
sLog.outDebug("WORLD: CMSG_CALENDAR_GET_CALENDAR");
|
||||||
recv_data.hexlike();
|
recv_data.hexlike();
|
||||||
/* not compatible with 3.0.8? client crash at receive... :(
|
|
||||||
time_t cur_time = time(NULL);
|
time_t cur_time = time(NULL);
|
||||||
|
|
||||||
WorldPacket data(SMSG_CALENDAR_SEND_CALENDAR,4+4*0+4+4*0+4+4);
|
WorldPacket data(SMSG_CALENDAR_SEND_CALENDAR,4+4*0+4+4*0+4+4);
|
||||||
|
|
@ -65,10 +62,11 @@ void WorldSession::HandleCalendarGetCalendar(WorldPacket &recv_data)
|
||||||
data.put<uint32>(p_counter,counter);
|
data.put<uint32>(p_counter,counter);
|
||||||
|
|
||||||
data << (uint32) 1135753200; //wtf?? (28.12.2005 12:00)
|
data << (uint32) 1135753200; //wtf?? (28.12.2005 12:00)
|
||||||
sLog.outDebug("Sending calendar");
|
data << (uint32) 0; // unk counter 4
|
||||||
|
data << (uint32) 0; // unk counter 5
|
||||||
|
//sLog.outDebug("Sending calendar");
|
||||||
//data.hexlike();
|
//data.hexlike();
|
||||||
SendPacket(&data);
|
SendPacket(&data);
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldSession::HandleCalendarGetEvent(WorldPacket &recv_data)
|
void WorldSession::HandleCalendarGetEvent(WorldPacket &recv_data)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue