aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Maps/Map.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2012-02-24 19:06:53 +0100
committerShauren <shauren.trinity@gmail.com>2012-02-24 19:06:53 +0100
commit9c3357c1def39f7fcc21a2d7d41a3d8952900372 (patch)
tree5e48aceed4ac4042fcb0afe247e700032e0c4817 /src/server/game/Maps/Map.cpp
parentc4b6dc3a15ccf5eb3b28d453d65a1e0556188015 (diff)
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)
Diffstat (limited to 'src/server/game/Maps/Map.cpp')
-rwxr-xr-xsrc/server/game/Maps/Map.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/server/game/Maps/Map.cpp b/src/server/game/Maps/Map.cpp
index cf517ccfbb4..8ce01d8cd0e 100755
--- a/src/server/game/Maps/Map.cpp
+++ b/src/server/game/Maps/Map.cpp
@@ -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