optimized gameuuid handling

This commit is contained in:
Matthew Toro 2026-04-04 02:17:59 -04:00
parent 6169b133ec
commit 692a1ffc8e
13 changed files with 61 additions and 45 deletions

View file

@ -762,6 +762,8 @@ unsigned int Player::getSkinAnimOverrideBitmask(DWORD skinId)
void Player::setXuid(PlayerUID xuid)
{
m_xuid = xuid;
if (m_gameUuid.isNil() && xuid != INVALID_XUID)
m_gameUuid = GameUUID::fromXuid(xuid);
#ifdef _XBOX_ONE
// 4J Stu - For XboxOne (and probably in the future all other platforms) we store a UUID for the player to use as the owner key for tamed animals
// This should just be a string version of the xuid