Added parenthesis to GET_SHINY_VALUE

This commit is contained in:
Eduardo Quezada 2022-09-11 13:35:58 -04:00
parent c3623bc928
commit 61752a4977

View File

@ -363,7 +363,7 @@ struct Evolution
| (((personality) & 0x00000003) >> 0) \ | (((personality) & 0x00000003) >> 0) \
) % NUM_UNOWN_FORMS) ) % NUM_UNOWN_FORMS)
#define GET_SHINY_VALUE(otId, personality)HIHALF(otId) ^ LOHALF(otId) ^ HIHALF(personality) ^ LOHALF(personality) #define GET_SHINY_VALUE(otId, personality) (HIHALF(otId) ^ LOHALF(otId) ^ HIHALF(personality) ^ LOHALF(personality))
extern u8 gPlayerPartyCount; extern u8 gPlayerPartyCount;
extern struct Pokemon gPlayerParty[PARTY_SIZE]; extern struct Pokemon gPlayerParty[PARTY_SIZE];