mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-21 22:41:14 +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
|
@ -241,12 +241,12 @@ void EnFu_Update(Actor* thisx, GlobalContext* globalCtx) {
|
|||
CollisionCheck_SetOC(globalCtx, &globalCtx->colChkCtx, &this->collider.base);
|
||||
Actor_MoveForward(&this->actor);
|
||||
Actor_UpdateBgCheckInfo(globalCtx, &this->actor, 0.0f, 0.0f, 0.0f, UPDBGCHECKINFO_FLAG_2);
|
||||
if ((!(this->behaviorFlags & FU_WAIT)) && (SkelAnime_Update(&this->skelanime) != 0)) {
|
||||
if (!(this->behaviorFlags & FU_WAIT) && (SkelAnime_Update(&this->skelanime) != 0)) {
|
||||
Animation_Change(&this->skelanime, this->skelanime.animation, 1.0f, 0.0f,
|
||||
Animation_GetLastFrame(this->skelanime.animation), ANIMMODE_ONCE, 0.0f);
|
||||
}
|
||||
this->actionFunc(this, globalCtx);
|
||||
if ((this->behaviorFlags & FU_RESET_LOOK_ANGLE)) {
|
||||
if (this->behaviorFlags & FU_RESET_LOOK_ANGLE) {
|
||||
Math_SmoothStepToS(&this->lookAngleOffset.x, 0, 6, 6200, 100);
|
||||
Math_SmoothStepToS(&this->lookAngleOffset.y, 0, 6, 6200, 100);
|
||||
Math_SmoothStepToS(&this->unk_2A2.x, 0, 6, 6200, 100);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue