@@ -35,23 +35,19 @@ void Object70_Init(Entity* this) {
35
35
}
36
36
37
37
void Object70_Action1 (Entity * this ) {
38
- u8 bVar1 ;
39
38
40
39
if (this -> type == 0 ) {
41
- if (gPlayerEntity .z .WORD == 0 ) {
42
- if ((((gPlayerState .dash_state & 0x40 ) == 0 ) && (gPlayerState .floor_type == SURFACE_SWAMP )) &&
43
- ((gPlayerEntity .action == PLAYER_NORMAL ||
44
- ((gPlayerEntity .action == PLAYER_ROLL || (gPlayerEntity .action == PLAYER_JUMP )))))) {
45
- goto _080974FA ;
46
- } else {
47
- if (gPlayerEntity .z .WORD == 0 ) {
48
- CreateFx (& gPlayerEntity , FX_GREEN_SPLASH , 0 );
49
- }
40
+ if (gPlayerEntity .z .WORD != 0 || (gPlayerState .dash_state & 0x40 ) != 0 ||
41
+ gPlayerState .floor_type != SURFACE_SWAMP ||
42
+ (gPlayerEntity .action != PLAYER_NORMAL && gPlayerEntity .action != PLAYER_ROLL &&
43
+ gPlayerEntity .action != PLAYER_JUMP )) {
44
+ if (gPlayerEntity .z .WORD == 0 ) {
45
+ CreateFx (& gPlayerEntity , FX_GREEN_SPLASH , 0 );
50
46
}
47
+
48
+ gPlayerEntity .spriteOrientation .flipY = 2 ;
49
+ DeleteThisEntity ();
51
50
}
52
- gPlayerEntity .spriteOrientation .flipY = 2 ;
53
- DeleteThisEntity ();
54
- _080974FA :
55
51
this -> x = gPlayerEntity .x ;
56
52
this -> y = gPlayerEntity .y ;
57
53
if (gPlayerState .jump_status == 0 ) {
@@ -62,15 +58,16 @@ void Object70_Action1(Entity* this) {
62
58
this -> spritePriority .b0 = 7 ;
63
59
}
64
60
}
61
+ return ;
62
+ }
65
63
66
- } else {
67
- if (gPlayerEntity .action != PLAYER_USEENTRANCE ) {
68
- if (this -> collisionLayer == 1 ) {
69
- gPlayerEntity .spriteOrientation .flipY = 2 ;
70
- } else {
71
- gPlayerEntity .spriteOrientation .flipY = 1 ;
72
- }
73
- DeleteThisEntity ();
64
+ if (gPlayerEntity .action != PLAYER_USEENTRANCE ) {
65
+ if (this -> collisionLayer == 1 ) {
66
+ gPlayerEntity .spriteOrientation .flipY = 2 ;
67
+ } else {
68
+ gPlayerEntity .spriteOrientation .flipY = 1 ;
74
69
}
70
+ DeleteThisEntity ();
75
71
}
76
72
}
73
+
0 commit comments