Core/Calendar

* Fixed raid resets display in calendar
* Active instance locks will now be added to calendar as soon as they are created (not after login)
This commit is contained in:
Shauren
2012-02-24 19:06:53 +01:00
parent c4b6dc3a15
commit 9c3357c1de
3 changed files with 27 additions and 5 deletions
+9
View File
@@ -2518,6 +2518,15 @@ void InstanceMap::PermBindAllPlayers(Player* source)
WorldPacket data(SMSG_INSTANCE_SAVE_CREATED, 4);
data << uint32(0);
player->GetSession()->SendPacket(&data);
time_t currTime = time(NULL);
data.Initialize(SMSG_CALENDAR_RAID_LOCKOUT_ADDED, 4 + 4 + 4 + 4 + 8);
data << uint32(secsToTimeBitFields(currTime));
data << uint32(save->GetMapId());
data << uint32(save->GetDifficulty());
data << uint32(save->GetResetTime() - currTime);
data << uint64(save->GetInstanceId());
player->GetSession()->SendPacket(&data);
}
// if the leader is not in the instance the group will not get a perm bind