-
Notifications
You must be signed in to change notification settings - Fork 74
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
General renaming and small structural changes in berry_patches.c - item.c #310
Conversation
FieldBattleDTO *dto; | ||
FieldSystem *fieldSystem = FieldTask_GetFieldSystem(task); | ||
|
||
dto = FieldBattleDTO_New(HEAP_ID_FIELDMAP, BATTLE_TYPE_TRAINER); | ||
FieldBattleDTO *dto = FieldBattleDTO_New(HEAP_ID_FIELDMAP, BATTLE_TYPE_TRAINER); |
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.
aside: I had purposefully left them in this order for consistency's sake across similar functions, but I'm not attached-enough to it to go against changing it.
src/game_overlay.c
Outdated
{ | ||
GF_ASSERT(param0->isActive == 1); | ||
GF_ASSERT(FS_UnloadOverlay(MI_PROCESSOR_ARM9, param0->id) == TRUE); | ||
GF_ASSERT(loadedOverlays->isActive == 1); |
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.
GF_ASSERT(loadedOverlays->isActive == 1); | |
GF_ASSERT(loadedOverlays->isActive == TRUE); |
And similar for other occurrences in this file.
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.
I have applied these and the other suggestions in the new commit
src/game_overlay.c
Outdated
|
||
param0->isActive = 0; | ||
loadedOverlays->isActive = 0; |
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.
loadedOverlays->isActive = 0; | |
loadedOverlays->isActive = FALSE; |
src/communication_system.c
Outdated
if (CommSys_IsPlayerConnected(i)) { | ||
if (sCommunicationSystem->unk_664[i] > 3) { | ||
return FALSE; | ||
} | ||
} |
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.
if (CommSys_IsPlayerConnected(i)) { | |
if (sCommunicationSystem->unk_664[i] > 3) { | |
return FALSE; | |
} | |
} | |
if (CommSys_IsPlayerConnected(i) && sCommunicationSystem->unk_664[i] > 3) { | |
return FALSE; | |
} |
…nnecessary scoping
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.
Just a few paren-cleanup tasks left here and this'll be mergeable.
Co-authored-by: Rachel <[email protected]>
Co-authored-by: Rachel <[email protected]>
Co-authored-by: Rachel <[email protected]>
Co-authored-by: Rachel <[email protected]>
Co-authored-by: Rachel <[email protected]>
Co-authored-by: Rachel <[email protected]>
Done! |
I went through some files in
src
and just made a bunch of small changes like making declarations more concise, removing unnecessary scoping, naming variables and arguments, and making the argument names match in the respective.h
files.