mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[11470] Final cleanup uint64 guid cases
Also drop logout player update fields cleanup that in any cases not saved.
This commit is contained in:
parent
a2b6a6fde5
commit
719e298795
26 changed files with 144 additions and 153 deletions
|
|
@ -2896,10 +2896,7 @@ ObjectGuid ChatHandler::ExtractGuidFromLink(char** text)
|
|||
if (Player* player = sObjectMgr.GetPlayer(name.c_str()))
|
||||
return player->GetObjectGuid();
|
||||
|
||||
if (uint64 guid = sObjectMgr.GetPlayerGUIDByName(name))
|
||||
return ObjectGuid(guid);
|
||||
|
||||
return ObjectGuid();
|
||||
return sObjectMgr.GetPlayerGuidByName(name);
|
||||
}
|
||||
case GUID_LINK_CREATURE:
|
||||
{
|
||||
|
|
@ -2992,7 +2989,7 @@ bool ChatHandler::ExtractLocationFromLink(char** text, uint32& mapid, float& x,
|
|||
return true;
|
||||
}
|
||||
|
||||
ObjectGuid guid = sObjectMgr.GetPlayerGUIDByName(name);
|
||||
ObjectGuid guid = sObjectMgr.GetPlayerGuidByName(name);
|
||||
if (!guid.IsEmpty())
|
||||
{
|
||||
// to point where player stay (if loaded)
|
||||
|
|
@ -3218,7 +3215,7 @@ bool ChatHandler::ExtractPlayerTarget(char** args, Player** player /*= NULL*/, O
|
|||
*player = pl;
|
||||
|
||||
// if need guid value from DB (in name case for check player existence)
|
||||
ObjectGuid guid = !pl && (player_guid || player_name) ? sObjectMgr.GetPlayerGUIDByName(name) : uint64(0);
|
||||
ObjectGuid guid = !pl && (player_guid || player_name) ? sObjectMgr.GetPlayerGuidByName(name) : ObjectGuid();
|
||||
|
||||
// if allowed player guid (if no then only online players allowed)
|
||||
if(player_guid)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue