@@ -1920,7 +1920,7 @@ void func_800C6108(u8 playerId) {
19201920 } else {
19211921 D_800E9E54 [playerId ] = (f32 ) - player -> unk_0C0 ;
19221922 }
1923- if ((player -> effects & UNKNOWN_EFFECT_0x10 ) == UNKNOWN_EFFECT_0x10 ) {
1923+ if ((player -> effects & DRIFTING_EFFECT ) == DRIFTING_EFFECT ) {
19241924 D_800E9EB4 [playerId ] = D_800E9E64 [playerId ] + D_800E9DE4 [playerId ];
19251925 } else {
19261926 D_800E9EB4 [playerId ] = D_800E9E64 [playerId ] + D_800E9DE4 [playerId ] - (D_800E9E54 [playerId ] / 12000.0f );
@@ -2190,8 +2190,7 @@ void func_800C683C(u8 cameraId) {
21902190void func_800C70A8 (u8 playerId ) {
21912191 if (D_800EA0EC [playerId ] == 0 ) {
21922192 D_800E9E74 [playerId ] = 0 ;
2193- if ((D_800E9E54 [playerId ] > 3500.0f ) ||
2194- ((gPlayers [playerId ].effects & UNKNOWN_EFFECT_0x10 ) == UNKNOWN_EFFECT_0x10 )) {
2193+ if ((D_800E9E54 [playerId ] > 3500.0f ) || ((gPlayers [playerId ].effects & DRIFTING_EFFECT ) == DRIFTING_EFFECT )) {
21952194 D_800E9E74 [playerId ] = 1 ;
21962195 switch (gPlayers [playerId ].tyres [AUDIO_LEFT_TYRE ].surfaceType ) {
21972196 case DIRT : /* switch 1 */
@@ -2223,7 +2222,7 @@ void func_800C70A8(u8 playerId) {
22232222 break ;
22242223 }
22252224 }
2226- if ((gPlayers [playerId ].effects & UNKNOWN_EFFECT_0x10 ) == UNKNOWN_EFFECT_0x10 ) {
2225+ if ((gPlayers [playerId ].effects & DRIFTING_EFFECT ) == DRIFTING_EFFECT ) {
22272226 D_800E9E74 [playerId ] = 2 ;
22282227 switch (gPlayers [playerId ].tyres [AUDIO_LEFT_TYRE ].surfaceType ) { /* switch 2 */
22292228 case DIRT : /* switch 2 */
@@ -2375,17 +2374,21 @@ void func_800C70A8(u8 playerId) {
23752374 D_800E9E74 [playerId ] = 0x0000001B ;
23762375 break ;
23772376 }
2378- if (((gPlayers [playerId ].speed < 0.5f ) || ((gPlayers [playerId ].effects & 8 ) == 8 )) &&
2377+ if (((gPlayers [playerId ].speed < 0.5f ) || ((gPlayers [playerId ].effects & MIDAIR_EFFECT ) == MIDAIR_EFFECT )) &&
23792378 (D_800E9E74 [playerId ] != 0x0000001C )) {
23802379 D_800E9E74 [playerId ] = 0 ;
23812380 }
2382- if ((((gPlayers [playerId ].effects & 0x4000 ) == 0x4000 ) && ((gPlayers [playerId ].type & 0x2000 ) != 0x2000 )) ||
2383- ((gPlayers [playerId ].effects & 0x800 ) == 0x800 ) || ((gPlayers [playerId ].effects & 0x80 ) == 0x80 ) ||
2384- ((gPlayers [playerId ].effects & 0x40 ) == 0x40 ) || ((gPlayers [playerId ].unk_044 & 0x4000 ) == 0x4000 )) {
2381+ if ((((gPlayers [playerId ].effects & EARLY_START_SPINOUT_EFFECT ) == EARLY_START_SPINOUT_EFFECT ) &&
2382+ ((gPlayers [playerId ].type & 0x2000 ) != 0x2000 )) ||
2383+ ((gPlayers [playerId ].effects & BANANA_NEAR_SPINOUT_EFFECT ) == BANANA_NEAR_SPINOUT_EFFECT ) ||
2384+ ((gPlayers [playerId ].effects & BANANA_SPINOUT_EFFECT ) == BANANA_SPINOUT_EFFECT ) ||
2385+ ((gPlayers [playerId ].effects & DRIVING_SPINOUT_EFFECT ) == DRIVING_SPINOUT_EFFECT ) ||
2386+ ((gPlayers [playerId ].unk_044 & 0x4000 ) == 0x4000 )) {
23852387 D_800E9E74 [playerId ] = 0x00000012 ;
23862388 }
2387- if ((((gPlayers [playerId ].effects & 0x20 ) == 0x20 ) && ((gPlayers [playerId ].type & 0x2000 ) != 0x2000 )) ||
2388- ((gPlayers [playerId ].effects & 0x800 ) == 0x800 )) {
2389+ if ((((gPlayers [playerId ].effects & AB_SPIN_EFFECT ) == AB_SPIN_EFFECT ) &&
2390+ ((gPlayers [playerId ].type & 0x2000 ) != 0x2000 )) ||
2391+ ((gPlayers [playerId ].effects & BANANA_NEAR_SPINOUT_EFFECT ) == BANANA_NEAR_SPINOUT_EFFECT )) {
23892392 D_800E9E74 [playerId ] = 0x00000013 ;
23902393 }
23912394 if (gPlayers [playerId ].unk_20C != 0.0f ) {
@@ -2714,13 +2717,13 @@ void func_800C847C(u8 playerId) {
27142717}
27152718
27162719void func_800C86D8 (u8 playerId ) {
2717- if (((gPlayers [playerId ].effects & 0x40000000 ) != 0x40000000 ) && (D_800E9F24 [playerId ] == 1 )) {
2720+ if (((gPlayers [playerId ].effects & LIGHTNING_EFFECT ) != LIGHTNING_EFFECT ) && (D_800E9F24 [playerId ] == 1 )) {
27182721 func_800C90F4 (playerId , (gPlayers [playerId ].characterId * 0x10 ) + SOUND_ARG_LOAD (0x29 , 0x00 , 0x80 , 0x08 ));
27192722 }
27202723}
27212724
27222725void func_800C8770 (u8 playerId ) {
2723- if ((gPlayers [playerId ].effects & 0x40000000 ) == 0x40000000 ) {
2726+ if ((gPlayers [playerId ].effects & LIGHTNING_EFFECT ) == LIGHTNING_EFFECT ) {
27242727 D_800E9F24 [playerId ] = 1 ;
27252728 if (D_800E9F2C [playerId ] < 0xFA ) {
27262729 D_800E9F2C [playerId ]++ ;
@@ -2753,11 +2756,14 @@ void func_800C8770(u8 playerId) {
27532756
27542757// Checks the same field for all players before doing something?
27552758void func_800C8920 (void ) {
2756- if (((u8 ) D_800EA168 != 0 ) && ((gPlayers [0 ].effects & 0x40000000 ) != 0x40000000 ) &&
2757- ((gPlayers [1 ].effects & 0x40000000 ) != 0x40000000 ) && ((gPlayers [2 ].effects & 0x40000000 ) != 0x40000000 ) &&
2758- ((gPlayers [3 ].effects & 0x40000000 ) != 0x40000000 ) && ((gPlayers [4 ].effects & 0x40000000 ) != 0x40000000 ) &&
2759- ((gPlayers [5 ].effects & 0x40000000 ) != 0x40000000 ) && ((gPlayers [6 ].effects & 0x40000000 ) != 0x40000000 ) &&
2760- ((gPlayers [7 ].effects & 0x40000000 ) != 0x40000000 )) {
2759+ if (((u8 ) D_800EA168 != 0 ) && ((gPlayers [0 ].effects & LIGHTNING_EFFECT ) != LIGHTNING_EFFECT ) &&
2760+ ((gPlayers [1 ].effects & LIGHTNING_EFFECT ) != LIGHTNING_EFFECT ) &&
2761+ ((gPlayers [2 ].effects & LIGHTNING_EFFECT ) != LIGHTNING_EFFECT ) &&
2762+ ((gPlayers [3 ].effects & LIGHTNING_EFFECT ) != LIGHTNING_EFFECT ) &&
2763+ ((gPlayers [4 ].effects & LIGHTNING_EFFECT ) != LIGHTNING_EFFECT ) &&
2764+ ((gPlayers [5 ].effects & LIGHTNING_EFFECT ) != LIGHTNING_EFFECT ) &&
2765+ ((gPlayers [6 ].effects & LIGHTNING_EFFECT ) != LIGHTNING_EFFECT ) &&
2766+ ((gPlayers [7 ].effects & LIGHTNING_EFFECT ) != LIGHTNING_EFFECT )) {
27612767 func_800CAC08 ();
27622768 }
27632769}
@@ -2928,7 +2934,8 @@ void func_800C90F4(u8 playerId, u32 soundBits) {
29282934 ((soundBits & ~0xF0 ) == SOUND_ARG_LOAD (0x29 , 0x00 , 0x80 , 0x05 ))) {
29292935 D_800EA180 = 1 ;
29302936 }
2931- if (((gPlayers [playerId ].effects & 0x40000000 ) == 0x40000000 ) && ((s32 ) D_800E9F2C [playerId ] >= 0x1F )) {
2937+ if (((gPlayers [playerId ].effects & LIGHTNING_EFFECT ) == LIGHTNING_EFFECT ) &&
2938+ ((s32 ) D_800E9F2C [playerId ] >= 0x1F )) {
29322939 play_sound (soundBits , & D_800E9F7C [playerId ].pos , playerId , & D_800EA150 , & D_800EA1D4 ,
29332940 (s8 * ) & D_800E9F7C [playerId ].unk_14 );
29342941 } else {
@@ -2957,7 +2964,8 @@ void func_800C92CC(u8 playerId, u32 soundBits) {
29572964 (u8 ) var_s0 , soundBits );
29582965 if (temp_v0 != NULL ) {
29592966 temp_v0 -> unk34 = 170.0f ;
2960- if (((gPlayers [playerId ].effects & 0x40000000 ) == 0x40000000 ) && ((s32 ) D_800E9F2C [playerId ] >= 0x1F )) {
2967+ if (((gPlayers [playerId ].effects & LIGHTNING_EFFECT ) == LIGHTNING_EFFECT ) &&
2968+ ((s32 ) D_800E9F2C [playerId ] >= 0x1F )) {
29612969 play_sound ((gPlayers [playerId ].characterId * 0x10 ) + soundBits , & temp_v0 -> unk18 , var_s0 ,
29622970 & D_800EA150 , & D_800EA1D4 , (s8 * ) & D_800EA06C [playerId ].unk0C );
29632971 } else {
0 commit comments