Skip to content

Commit 56c973d

Browse files
author
Niko
committed
rename flags
1 parent c5ec281 commit 56c973d

File tree

9 files changed

+11
-15
lines changed

9 files changed

+11
-15
lines changed

decompile/General/INSTANCE/INSTANCE_06_LevInitAll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void DECOMP_INSTANCE_LevInitAll(struct InstDef *levInstDef, int numInst)
9696
{
9797
// Only continue if LEV instances are enabled,
9898
// they may be disabled due to podium scene on adv hub
99-
if ((gGT->gameMode2 & DISABLE_LEV_INSTANCE) == 0)
99+
if ((gGT->gameMode2 & NO_LEV_INSTANCE) == 0)
100100
{
101101
meta = DECOMP_COLL_LevModelMeta(modelID);
102102

decompile/General/LOAD/LOAD_44_TenStages.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ int DECOMP_LOAD_TenStages(struct GameTracker* gGT, int loadingStage, struct BigH
9696

9797
// disable certain game mode flags
9898
gGT->gameMode1 &= ~(GAME_CUTSCENE | END_OF_RACE | ADVENTURE_ARENA | MAIN_MENU);
99-
gGT->gameMode2 &= ~(LEV_SWAP | CREDITS | DISABLE_LEV_INSTANCE);
99+
gGT->gameMode2 &= ~(LEV_SWAP | CREDITS | NO_LEV_INSTANCE);
100100

101101
gGT->visMem1 = 0;
102102
gGT->visMem2 = 0;

decompile/General/MAIN/MainFrame_08_RenderFrame.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ void RenderAllHUD(struct GameTracker* gGT)
840840
#endif
841841

842842
// allow instances again
843-
gGT->gameMode2 &= ~(DISABLE_LEV_INSTANCE);
843+
gGT->gameMode2 &= ~(NO_LEV_INSTANCE);
844844

845845
// fade transition
846846
gGT->pushBuffer_UI.fadeFromBlack_desiredResult = 0x1000;

include/namespace_Main.h

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,12 @@ enum GameMode2
4545
LEV_SWAP = 0x20,
4646
// 0x40?
4747
CREDITS = 0x80,
48-
49-
DISABLE_LEV_INSTANCE = 0x100,
50-
48+
NO_LEV_INSTANCE = 0x100,
5149
CHEAT_WUMPA = 0x200,
5250
CHEAT_MASK = 0x400,
5351
CHEAT_TURBO = 0x800,
54-
55-
// & 0x1000 - FIRST_TIME_WIN_CUP
56-
// & 0x2000 - FIRST_TIME_UNLOCK_BATTLE_MAP
57-
52+
CUP_NEW_WIN = 0x1000,
53+
CUP_NEW_BATTLE = 0x2000,
5854
VEH_FREEZE_DOOR = 0x4000,
5955
CHEAT_INVISIBLE = 0x8000,
6056
CHEAT_ENGINE = 0x10000,

mods/Levels/Legacy/RoadToRainbow/src/LOAD_TenStages.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ int LOAD_TenStages(struct GameTracker* gGT, int loadingStage, struct BigHeader*
126126

127127
// disable certain game mode flags
128128
gGT->gameMode1 &= ~(GAME_CUTSCENE | END_OF_RACE | ADVENTURE_ARENA | MAIN_MENU);
129-
gGT->gameMode2 &= ~(LEV_SWAP | CREDITS | DISABLE_LEV_INSTANCE);
129+
gGT->gameMode2 &= ~(LEV_SWAP | CREDITS | NO_LEV_INSTANCE);
130130

131131
gGT->visMem1 = 0;
132132
gGT->visMem2 = 0;

mods/Levels/Legacy/TileTrauma/src/LOAD_TenStages.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ int LOAD_TenStages(struct GameTracker* gGT, int loadingStage, struct BigHeader*
124124

125125
// disable certain game mode flags
126126
gGT->gameMode1 &= ~(GAME_CUTSCENE | END_OF_RACE | ADVENTURE_ARENA | MAIN_MENU);
127-
gGT->gameMode2 &= ~(LEV_SWAP | CREDITS | DISABLE_LEV_INSTANCE);
127+
gGT->gameMode2 &= ~(LEV_SWAP | CREDITS | NO_LEV_INSTANCE);
128128

129129
gGT->visMem1 = 0;
130130
gGT->visMem2 = 0;

mods/Levels/Legacy/WallTest/src/LOAD_TenStages.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ int LOAD_TenStages(struct GameTracker* gGT, int loadingStage, struct BigHeader*
124124

125125
// disable certain game mode flags
126126
gGT->gameMode1 &= ~(GAME_CUTSCENE | END_OF_RACE | ADVENTURE_ARENA | MAIN_MENU);
127-
gGT->gameMode2 &= ~(LEV_SWAP | CREDITS | DISABLE_LEV_INSTANCE);
127+
gGT->gameMode2 &= ~(LEV_SWAP | CREDITS | NO_LEV_INSTANCE);
128128

129129
gGT->visMem1 = 0;
130130
gGT->visMem2 = 0;

mods/Levels/Legacy/WorkingLapTest/src/LOAD_TenStages.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ int LOAD_TenStages(struct GameTracker* gGT, int loadingStage, struct BigHeader*
124124

125125
// disable certain game mode flags
126126
gGT->gameMode1 &= ~(GAME_CUTSCENE | END_OF_RACE | ADVENTURE_ARENA | MAIN_MENU);
127-
gGT->gameMode2 &= ~(LEV_SWAP | CREDITS | DISABLE_LEV_INSTANCE);
127+
gGT->gameMode2 &= ~(LEV_SWAP | CREDITS | NO_LEV_INSTANCE);
128128

129129
gGT->visMem1 = 0;
130130
gGT->visMem2 = 0;

mods/Levels/PS1_TrackROM/src/load_lev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ int LOAD_TenStages(struct GameTracker* gGT, int loadingStage, struct BigHeader*
109109

110110
// disable certain game mode flags
111111
gGT->gameMode1 &= ~(GAME_CUTSCENE | END_OF_RACE | ADVENTURE_ARENA | MAIN_MENU);
112-
gGT->gameMode2 &= ~(LEV_SWAP | CREDITS | DISABLE_LEV_INSTANCE);
112+
gGT->gameMode2 &= ~(LEV_SWAP | CREDITS | NO_LEV_INSTANCE);
113113

114114
gGT->visMem1 = 0;
115115
gGT->visMem2 = 0;

0 commit comments

Comments
 (0)