Core/Calendar

* Added sending SMSG_CALENDAR_RAID_LOCKOUT_REMOVED when instance save is removed
* Refactored sending SMSG_CALENDAR_RAID_LOCKOUT_ADDED/REMOVED into separate method
This commit is contained in:
Shauren
2012-02-24 19:31:40 +01:00
parent a09310244f
commit a934abbbb7
4 changed files with 25 additions and 16 deletions
+1 -8
View File
@@ -2519,14 +2519,7 @@ void InstanceMap::PermBindAllPlayers(Player* source)
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);
player->GetSession()->SendCalendarRaidLockout(save, true);
}
// if the leader is not in the instance the group will not get a perm bind