Skip to content

Commit 3ce1d6d

Browse files
author
Niko
committed
progress
1 parent 09b6cb6 commit 3ce1d6d

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

decompile/General/222/222_Full.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ void DECOMP_AA_EndEvent_DrawMenu(void)
431431
if (gGT->gameMode1 < 0)
432432
{
433433
// when loading is done, add flag for "spawn near boss door"
434-
sdata->Loading.OnBegin.AddBitsConfig8 |= 1;
434+
sdata->Loading.OnBegin.AddBitsConfig8 |= SPAWN_AT_BOSS;
435435

436436
// when loading is done, remove flag for Boss Mode
437437
sdata->Loading.OnBegin.RemBitsConfig0 |= ADVENTURE_BOSS;

decompile/General/MAIN/MainFreeze_06_MenuPtrDefault.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ void DECOMP_MainFreeze_MenuPtrDefault(struct RectMenu* menu)
200200
sdata->Loading.OnBegin.RemBitsConfig0 |= 0x8c000000;
201201

202202
// When loading is done add bit to spawn driver near boss door
203-
sdata->Loading.OnBegin.AddBitsConfig8 |= 1;
203+
sdata->Loading.OnBegin.AddBitsConfig8 |= SPAWN_AT_BOSS;
204204
}
205205

206206
// set levID to level you were in previously

decompile/General/Vehicle/VehBirth_0_TeleportSelf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ void DECOMP_VehBirth_TeleportSelf(struct Driver *d, u_char spawnFlag, int spawnP
236236
else
237237
{
238238
// spawn on the podium in the adv hub
239+
posRot = gGT->level1->ptrSpawnType2_PosRot[1].posCoords;
239240
posBottom[0] = posRot->pos[0];
240241
posBottom[1] = posRot->pos[1] + 0x80;
241242
posBottom[2] = posRot->pos[2];

decompile/WorkInProgress/src/233/233_22_CS_Camera_BoolGotoBoss.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,10 @@ u_char DECOMP_CS_Camera_BoolGotoBoss(void)
1818
if (gGT->podiumRewardID == 99)
1919
return 1;
2020

21-
// if podiumRewardID is reset to 0 after first frame of boss cutscene,
22-
// check if camera has moved to the correct position yet
2321
struct Instance* inst = gGT->drivers[0]->instSelf;
2422
short *posCoords = gGT->level1->ptrSpawnType2_PosRot[1].posCoords;
2523

26-
// TRUE if not at these coordinates
24+
// TRUE if TeleportSelf did NOT spawn on podium (goto boss door)
2725
return
2826
(inst->matrix.t[0] != posCoords[0]) &&
2927
(inst->matrix.t[2] != posCoords[2]);

decompile/buildList.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,7 @@ common, exe, UI_CupStandings_InputAndDraw, 0x0, General/UI/UI_58_CupSta
12761276
// ====================================================================================================================
12771277
common, exe, VehAfterColl_GetSurface, 0x0, General/Vehicle/VehAfterColl_0_GetSurface.c
12781278
common, exe, VehAfterColl_GetTerrain, 0x0, General/Vehicle/VehAfterColl_1_GetTerrain.c
1279-
//common, exe, VehBirth_TeleportSelf, 0x0, General/Vehicle/VehBirth_0_TeleportSelf.c
1279+
common, exe, VehBirth_TeleportSelf, 0x0, General/Vehicle/VehBirth_0_TeleportSelf.c
12801280
common, exe, VehBirth_TeleportAll, 0x0, General/Vehicle/VehBirth_1_TeleportAll.c
12811281
common, exe, VehBirth_GetModelByName, 0x0, General/Vehicle/VehBirth_2_GetModelByName.c
12821282
common, exe, VehBirth_SetConsts, 0x0, General/Vehicle/VehBirth_3_SetConsts.c

ghidra/233.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2901,6 +2901,7 @@ undefined4 FUN_800aed48(void)
29012901
(*(short *)(PTR_DAT_8008d2ac + 0x2572) != 99)
29022902
)
29032903
{
2904+
// gGT->level1->ptrSpawnType2_PosRot[1].posCoords
29042905
psVar2 = *(short **)(*(int *)(*(int *)(PTR_DAT_8008d2ac + 0x160) + 0x144) + 0xc);
29052906

29062907
uVar1 = 1;

mods/Modules/AdvDifficulty/src/MainFreeze_MenuPtrDefault.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void DECOMP_MainFreeze_MenuPtrDefault(struct RectMenu* menu)
102102
if ((int)gameMode < 0) // BOSS Race
103103
{
104104
sdata->Loading.OnBegin.RemBitsConfig0 |= ADVENTURE_BOSS;
105-
sdata->Loading.OnBegin.AddBitsConfig8 |= 1;
105+
sdata->Loading.OnBegin.AddBitsConfig8 |= SPAWN_AT_BOSS;
106106
}
107107
level_to_load = gGT->prevLEV;
108108
}

mods/Modules/AdvDifficulty/src/UI_RaceEnd_MenuBoxFuncPtr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ void DECOMP_UI_RaceEnd_MenuProc(struct RectMenu* menu)
141141
if (gGT->gameMode1 < 0)
142142
{
143143
// when loading is done, add flag to spawn near boss door
144-
sdata->Loading.OnBegin.AddBitsConfig8 |= 1;
144+
sdata->Loading.OnBegin.AddBitsConfig8 |= SPAWN_AT_BOSS;
145145

146146
// when loading is done, remove flags for
147147
// boss race, relic race, and crystal challenge

0 commit comments

Comments
 (0)