1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-10 17:00:19 +00:00

create ACTOR_FLAGS_CHECK_ALL (#2515)

This commit is contained in:
fig02 2025-04-26 19:07:52 -04:00 committed by GitHub
parent bed76a3bf3
commit ea22c2ac38
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 40 additions and 43 deletions

View file

@ -160,6 +160,8 @@ typedef struct ActorShape {
// Flag controlling the use of `Actor.sfx`. Do not use directly. See Actor_PlaySfx_FlaggedTimer
#define ACTOR_FLAG_SFX_TIMER (1 << 28)
#define ACTOR_FLAGS_CHECK_ALL(thisx, mask) (((thisx)->flags & (mask)) == (mask))
#define COLORFILTER_GET_COLORINTENSITY(colorFilterParams) (((colorFilterParams) & 0x1F00) >> 5)
#define COLORFILTER_GET_DURATION(colorFilterParams) ((colorFilterParams) & 0xFF)