Use cLib on/off bit inlines for attn flags

The debug maps indicate these inlines were pretty much always used when these flags are ORed or ANDed (but not when checked or set).
This commit is contained in:
LagoLunatic
2025-03-08 17:08:50 -05:00
parent e696d982c6
commit 87dcddd519
13 changed files with 33 additions and 34 deletions
+1 -1
View File
@@ -153,7 +153,7 @@ namespace daObjPaper {
attention_info.position.y += attr(mType).mAttentionOffset;
attention_info.distances[fopAc_Attn_TYPE_TALK_e] = attr(mType).mAttentionDist1;
attention_info.distances[fopAc_Attn_TYPE_SPEAK_e] = attr(mType).mAttentionDist2;
attention_info.flags |= fopAc_Attn_LOCKON_TALK_e | fopAc_Attn_ACTION_SPEAK_e | fopAc_Attn_TALKFLAG_READ_e;
cLib_onBit<u32>(attention_info.flags, fopAc_Attn_LOCKON_TALK_e | fopAc_Attn_ACTION_SPEAK_e | fopAc_Attn_TALKFLAG_READ_e);
mMsgId = fpcM_ERROR_PROCESS_ID_e;