Jump to content
/dev/not/null

Correct GUID sending via SMSG_UPDATE_OBJECT

Recommended Posts

As I can see in Mangos sources, Object::BuildCreateUpdateBlockForPlayer contains  next string:

buf << (uint8)0xFF << GetGUID();

What does 0xFF means here ?

Share this post


Link to post
Share on other sites

Actually, not much as it's casted as uint8. Code-wise, I'd say it's 0xF. Why is it like that ? No clue though.

Share this post


Link to post
Share on other sites

Where did you find that line? Please specify the file and line number, as I can't manage to find it anywhere in mangos one sources...

  • Like 1

Share this post


Link to post
Share on other sites
3 hours ago, H0zen said:

Where did you find that line? Please specify the file and line number, as I can't manage to find it anywhere in mangos one sources...

Oh, sorry, my mistake. That line was in file Object.cpp of OregonCore... I have tabs opened of both mangos and oregoncore

Share this post


Link to post
Share on other sites

It's funny that the code above outputs actually a packed GUID (without any compaction for zero bytes, thus the bitmask is 0xFF). So it's ok when filling a packed GUID field in a packet.

Share this post


Link to post
Share on other sites
3 minutes ago, Olion said:

It's funny that the code above outputs actually a packed GUID (without any compaction for zero bytes, thus the bitmask is 0xFF). So it's ok when filling a packed GUID field in a packet.

So, this method is better or worse than using SetPackGUID method ?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Contact Us

To contact us click here
You can also email us at [email protected]

Privacy Policy | Terms & Conditions

Repositories

The Link to the master list
of MaNGOS repositories:
Copyright © getMaNGOS. All rights Reserved.

This website is in no way associated with or endorsed by Blizzard Entertainment®
×