mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-20 22:11:16 +00:00
Remove many redundant parentheses (eg. in boolean conditions) (#1220)
* Remove many unnecessary parens around boolean conditions * Remove duplicate parens in some expressions * Apply review suggestions * Update src/overlays/actors/ovl_Bg_Jya_Lift/z_bg_jya_lift.c Co-authored-by: EllipticEllipsis <elliptic.ellipsis@gmail.com> Co-authored-by: EllipticEllipsis <elliptic.ellipsis@gmail.com>
This commit is contained in:
parent
c799176a30
commit
92aef346f2
36 changed files with 67 additions and 67 deletions
|
@ -291,7 +291,7 @@ void EnMk_Update(Actor* thisx, GlobalContext* globalCtx) {
|
|||
Actor_MoveForward(&this->actor);
|
||||
Actor_UpdateBgCheckInfo(globalCtx, &this->actor, 0.0f, 0.0f, 0.0f, UPDBGCHECKINFO_FLAG_2);
|
||||
|
||||
if ((!(this->flags & 2)) && (SkelAnime_Update(&this->skelAnime))) {
|
||||
if (!(this->flags & 2) && SkelAnime_Update(&this->skelAnime)) {
|
||||
this->flags |= 2;
|
||||
}
|
||||
|
||||
|
@ -332,7 +332,7 @@ void EnMk_Update(Actor* thisx, GlobalContext* globalCtx) {
|
|||
if (this->swimFlag < swimFlag) {
|
||||
this->swimFlag = swimFlag;
|
||||
|
||||
if ((!(this->flags & 4)) && (this->swimFlag >= 8)) {
|
||||
if (!(this->flags & 4) && (this->swimFlag >= 8)) {
|
||||
this->flags |= 4;
|
||||
func_80078884(NA_SE_SY_CORRECT_CHIME);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue