-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove redundant side macros/funcs #3201
Conversation
Is removing GetBattlerPosition a good idea? I think it's more readable the way it is now. I would personally make it an inline function like the rest. |
Re-added and applied everywhere, only uses of |
I can try to review this later in the weekend/next week. If somebody else wants to get to it first they're more than welcome to and I can change my review to approve. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the weird extern and conflicts, I think this should be good to go.
|
||
static inline struct Pokemon *GetBattlerParty(u32 battlerId) | ||
{ | ||
extern u8 GetBattlerSide(u8 battler); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this extern needed here?
Replaced by #3299 |
Description
Replaces GET_BATTLER_SIDE and GET_BATTLER_SIDE2 with the existing GetBattlerSide, which is now inlined. Also changes all instances of GetBattlerPosition with direct gBattlerPositions usage.
Discord contact info
crater.