Map/InstanceMap: Ease up on a somewhat overzealous error message regarding instance saves.

This commit is contained in:
treeston authored and Aokromes committed 2016-09-22 03:10:06 +02:00
1 parent c11e26a80b
commit 3d82e5771d
1 file changed
+8 -1
+8 -1
View File
@@ -3271,7 +3271,14 @@ void InstanceMap::PermBindAllPlayers()
InstancePlayerBind* bind = player->GetBoundInstance(save->GetMapId(), save->GetDifficulty());
if (bind && bind->perm)
{
TC_LOG_ERROR("maps", "Player (GUID: %u, Name: %s) is in instance map (Name: %s, Entry: %u, Difficulty: %u, ID: %u) that is being bound, but already has a save for the map on ID %u!", player->GetGUID().GetCounter(), player->GetName().c_str(), GetMapName(), GetId(), GetDifficulty(), GetInstanceId(), save->GetInstanceId());
if (bind->save && bind->save->GetInstanceId() != save->GetInstanceId())
{
TC_LOG_ERROR("maps", "Player (GUID: %u, Name: %s) is in instance map (Name: %s, Entry: %u, Difficulty: %u, ID: %u) that is being bound, but already has a save for the map on ID %u!", player->GetGUID().GetCounter(), player->GetName().c_str(), GetMapName(), save->GetMapId(), save->GetDifficulty(), save->GetInstanceId(), bind->save->GetInstanceId());
}
else if (!bind->save)
{
TC_LOG_ERROR("maps", "Player (GUID: %u, Name: %s) is in instance map (Name: %s, Entry: %u, Difficulty: %u, ID: %u) that is being bound, but already has a bind (without associated save) for the map!", player->GetGUID().GetCounter(), player->GetName().c_str(), GetMapName(), save->GetMapId(), save->GetDifficulty(), save->GetInstanceId());
}
}
else
{