Cosmetic - extra flags on lore
-
Object 'black scimitar sword blade' is type weapon, extra flags none remort_only.
So I take it the extra field on that object has no matching flag bits set. Why not just ignore that if the field results to none?
-
I'm guessing the one I viewed had garbage bits in it that the flag->string function didn't recognize, so it generated "none". Your copy likely had it set to zero, which I'm guessing the code checks before attempting to do the flag->string.
Perhaps create a set of VALID_*_MASK for every flag bank, where * is the name of the bank, such as VALID_OBJEXTRA_MASK. The define would have all valid bit positions associated WITH that set of flags.
A simple check like so…
if(obj->extra & VALID_OBJEXTRA_MASK)would filter out possible garbage bits from corrupting system checks.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login