@@ -208,7 +208,7 @@ static s32 spinVisualPositionProc(struct MenuItem *item, enum MenuCallbackReason
208208}
209209
210210static void spinDraw (s32 x , s32 y , struct GfxFont * font , s32 chWidth , s32 chHeight , u32 color , u8 alpha ) {
211- if (pm_gGameStatus .isBattle != 0 ) {
211+ if (pm_gGameStatus .context != CONTEXT_WORLD ) {
212212 return ;
213213 }
214214
@@ -508,7 +508,7 @@ static void aceOotInstrProc(struct MenuItem *item, void *data) {
508508}
509509
510510static void updateBowserBlockTrainer (void ) {
511- if (pm_gGameStatus .isBattle ) {
511+ if (pm_gGameStatus .context == CONTEXT_BATTLE ) {
512512 pm_Actor * enemy0 = pm_gBattleStatus .enemyActors [0 ];
513513 if (enemy0 ) {
514514 bool isBowser = FALSE;
@@ -640,8 +640,8 @@ static void updateLzsTrainer(void) {
640640}
641641
642642static void updateSpinTrainer (void ) {
643- if (!( pm_gGameStatus .isBattle != 1 &&
644- (settings -> trainerSpinBarEnabled || settings -> pinnedTrainer == TRAINER_SPIN ) )) {
643+ if (pm_gGameStatus .context == CONTEXT_BATTLE ||
644+ ! (settings -> trainerSpinBarEnabled || settings -> pinnedTrainer == TRAINER_SPIN )) {
645645 return ;
646646 }
647647
@@ -737,7 +737,7 @@ static void blockCheckSuccessOrEarly(void) {
737737}
738738
739739static void updateBlockTrainer (void ) {
740- if (settings -> trainerAcEnabled && pm_gGameStatus .isBattle ) {
740+ if (settings -> trainerAcEnabled && pm_gGameStatus .context == CONTEXT_BATTLE ) {
741741 // blocks
742742 switch (pm_gBattleStatus .blockResult ) {
743743 case BLOCK_EARLY :
@@ -828,7 +828,8 @@ static void updateQuickJumpTrainer(void) {
828828 static bool waitForNextTurn ;
829829 static u8 frameWindow ;
830830
831- if (settings -> trainerQuickJumpsEnabled && pm_gGameStatus .isBattle && pm_gBattleStatus .playerActor ) {
831+ if (settings -> trainerQuickJumpsEnabled && pm_gGameStatus .context == CONTEXT_BATTLE &&
832+ pm_gBattleStatus .playerActor ) {
832833 if (pm_gBattleStatus .playerActor -> partsTable -> curAnimation == 0x10004 ) {
833834 waitForNextTurn = FALSE;
834835 jumpFrame = -1 ;
0 commit comments