@@ -119,7 +119,7 @@ void EnBombers2_Init(Actor* thisx, PlayState* play) {
119
119
if (CHECK_WEEKEVENTREG (WEEKEVENTREG_73_80 ) || (gSaveContext .save .entrance == ENTRANCE (EAST_CLOCK_TOWN , 2 ))) {
120
120
this -> actor .world .pos .x += Math_SinS (this -> actor .home .rot .y + 0xC100 ) * 50.0f ;
121
121
cos = Math_CosS (this -> actor .home .rot .y + 0xC100 ) * 50.0f ;
122
- this -> unk_2AC = 1 ;
122
+ this -> unk_2AC = true ;
123
123
this -> actor .world .pos .z += cos ;
124
124
}
125
125
this -> csId = this -> actor .csId ;
@@ -146,7 +146,7 @@ void EnBombers2_ChangeAnim(EnBombers2* this, s32 animIndex, f32 playSpeed) {
146
146
}
147
147
148
148
void func_80C04B40 (EnBombers2 * this ) {
149
- if (this -> unk_2AC == 0 ) {
149
+ if (! this -> unk_2AC ) {
150
150
EnBombers2_ChangeAnim (this , ENBOMBERS_ANIM_4 , 1.0f );
151
151
} else {
152
152
EnBombers2_ChangeAnim (this , ENBOMBERS_ANIM_0 , 1.0f );
@@ -180,7 +180,7 @@ void func_80C04BA0(EnBombers2* this, PlayState* play) {
180
180
default :
181
181
break ;
182
182
}
183
- if (this -> unk_2AC != 0 ) {
183
+ if (this -> unk_2AC ) {
184
184
this -> textIdIndex = 7 ;
185
185
}
186
186
this -> actor .textId = sTextIds [this -> textIdIndex ];
@@ -208,7 +208,7 @@ void func_80C04D00(EnBombers2* this) {
208
208
}
209
209
210
210
this -> unk_2A8 = 0 ;
211
- if (this -> unk_2AC != 0 ) {
211
+ if (this -> unk_2AC ) {
212
212
EnBombers2_ChangeAnim (this , ENBOMBERS_ANIM_6 , 1.0f );
213
213
}
214
214
this -> unk_2C0 = 1 ;
@@ -219,7 +219,7 @@ void func_80C04D8C(EnBombers2* this, PlayState* play) {
219
219
Player * player = GET_PLAYER (play );
220
220
f32 curFrame = this -> skelAnime .curFrame ;
221
221
222
- if (( this -> unk_2AC == 0 ) && (curFrame >= this -> lastAnimFrame )) {
222
+ if (! this -> unk_2AC && (curFrame >= this -> lastAnimFrame )) {
223
223
if (!(this -> unk_2A8 & 1 )) {
224
224
EnBombers2_ChangeAnim (this , ENBOMBERS_ANIM_1 , 1.0f );
225
225
} else {
@@ -367,7 +367,7 @@ void func_80C0520C(EnBombers2* this, PlayState* play) {
367
367
this -> unk_2C0 = 1 ;
368
368
SET_WEEKEVENTREG (WEEKEVENTREG_73_80 );
369
369
CutsceneManager_Stop (this -> csId );
370
- this -> unk_2AC = 1 ;
370
+ this -> unk_2AC = true ;
371
371
this -> actor .textId = sTextIds [this -> textIdIndex ];
372
372
Message_StartTextbox (play , this -> actor .textId , & this -> actor );
373
373
this -> actionFunc = func_80C04D8C ;
@@ -380,8 +380,8 @@ void func_80C0520C(EnBombers2* this, PlayState* play) {
380
380
}
381
381
382
382
void EnBombers2_Update (Actor * thisx , PlayState * play ) {
383
+ s32 pad ;
383
384
EnBombers2 * this = (EnBombers2 * )thisx ;
384
- f32 temp_f4 ;
385
385
Vec3f sp34 ;
386
386
s32 yawDiffAbs ;
387
387
@@ -422,10 +422,9 @@ void EnBombers2_Update(Actor* thisx, PlayState* play) {
422
422
}
423
423
}
424
424
Math_Vec3f_Copy (& sp34 , & this -> actor .world .pos );
425
- if (this -> unk_2AC == 0 ) {
426
- this -> actor .world .pos .x = (Math_SinS ((this -> actor .world .rot .y + 0x8000 )) * 26.0f ) + sp34 .x ;
427
- temp_f4 = Math_CosS (this -> actor .world .rot .y + 0x8000 ) * 26.0f ;
428
- this -> actor .world .pos .z = temp_f4 + sp34 .z ;
425
+ if (!this -> unk_2AC ) {
426
+ this -> actor .world .pos .x = sp34 .x + Math_SinS (this -> actor .world .rot .y + 0x8000 ) * 26.0f ;
427
+ this -> actor .world .pos .z = sp34 .z + Math_CosS (this -> actor .world .rot .y + 0x8000 ) * 26.0f ;
429
428
this -> collider .dim .radius = 35 ;
430
429
this -> collider .dim .height = 30 ;
431
430
} else {
@@ -434,7 +433,7 @@ void EnBombers2_Update(Actor* thisx, PlayState* play) {
434
433
}
435
434
Collider_UpdateCylinder (& this -> actor , & this -> collider );
436
435
CollisionCheck_SetOC (play , & play -> colChkCtx , & this -> collider .base );
437
- if (this -> unk_2AC == 0 ) {
436
+ if (! this -> unk_2AC ) {
438
437
Actor_UpdateBgCheckInfo (play , & this -> actor , 20.0f , 20.0f , 50.0f ,
439
438
UPDBGCHECKINFO_FLAG_1 | UPDBGCHECKINFO_FLAG_4 | UPDBGCHECKINFO_FLAG_8 |
440
439
UPDBGCHECKINFO_FLAG_10 );
0 commit comments