mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[10799] Add GetGuidStr() short call for GetObjectGuid().GetString() and use it.
This commit is contained in:
parent
2fa4cf41a7
commit
ce7b98c45e
21 changed files with 122 additions and 121 deletions
|
|
@ -16420,7 +16420,7 @@ void Player::_LoadSpells(QueryResult *result)
|
|||
if(GetTalentSpellPos(spell_id))
|
||||
{
|
||||
sLog.outError("Player::_LoadSpells: %s has talent spell %u in character_spell, removing it.",
|
||||
GetObjectGuid().GetString().c_str(), spell_id);
|
||||
GetGuidStr().c_str(), spell_id);
|
||||
CharacterDatabase.PExecute("DELETE FROM character_spell WHERE spell = '%u'", spell_id);
|
||||
continue;
|
||||
}
|
||||
|
|
@ -16580,7 +16580,7 @@ void Player::_LoadBoundInstances(QueryResult *result)
|
|||
if(!perm && group)
|
||||
{
|
||||
sLog.outError("_LoadBoundInstances: %s is in group (Id: %d) but has a non-permanent character bind to map %d,%d,%d",
|
||||
GetObjectGuid().GetString().c_str(), group->GetId(), mapId, instanceId, difficulty);
|
||||
GetGuidStr().c_str(), group->GetId(), mapId, instanceId, difficulty);
|
||||
CharacterDatabase.PExecute("DELETE FROM character_instance WHERE guid = '%u' AND instance = '%u'",
|
||||
GetGUIDLow(), instanceId);
|
||||
continue;
|
||||
|
|
@ -19507,7 +19507,7 @@ void Player::UpdateVisibilityOf(WorldObject const* viewPoint, T* target, UpdateD
|
|||
target->BuildOutOfRangeUpdateBlock(&data);
|
||||
m_clientGUIDs.erase(t_guid);
|
||||
|
||||
DEBUG_FILTER_LOG(LOG_FILTER_VISIBILITY_CHANGES, "%s is out of range for %s. Distance = %f", t_guid.GetString().c_str(), GetObjectGuid().GetString().c_str(), GetDistance(target));
|
||||
DEBUG_FILTER_LOG(LOG_FILTER_VISIBILITY_CHANGES, "%s is out of range for %s. Distance = %f", t_guid.GetString().c_str(), GetGuidStr().c_str(), GetDistance(target));
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
@ -19518,7 +19518,7 @@ void Player::UpdateVisibilityOf(WorldObject const* viewPoint, T* target, UpdateD
|
|||
target->BuildCreateUpdateBlockForPlayer(&data, this);
|
||||
UpdateVisibilityOf_helper(m_clientGUIDs,target);
|
||||
|
||||
DEBUG_FILTER_LOG(LOG_FILTER_VISIBILITY_CHANGES, "%s is visible now for %s. Distance = %f", target->GetObjectGuid().GetString().c_str(), GetObjectGuid().GetString().c_str(), GetDistance(target));
|
||||
DEBUG_FILTER_LOG(LOG_FILTER_VISIBILITY_CHANGES, "%s is visible now for %s. Distance = %f", target->GetGuidStr().c_str(), GetGuidStr().c_str(), GetDistance(target));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue