Some fixes for battle mode

This commit is contained in:
MegaMech
2025-05-22 07:04:45 -06:00
parent 20b67182c4
commit 6ff80c5f08
5 changed files with 16 additions and 3 deletions
+8 -3
View File
@@ -244,6 +244,10 @@ u32 GetCupIndex(void) {
return gWorldInstance.GetCupIndex();
}
void CM_SetCupIndex(size_t index) {
gWorldInstance.SetCupIndex(index);
}
const char* GetCupName(void) {
return gWorldInstance.CurrentCup->Name;
}
@@ -394,10 +398,11 @@ void CM_BeginPlay() {
if (course) {
// Do not spawn finishline in credits or battle mode. And if bSpawnFinishline.
if ((gGamestate != CREDITS_SEQUENCE) && (gGamestate != BATTLE) && (course->bSpawnFinishline)) {
gWorldInstance.AddActor(new AFinishline(course->FinishlineSpawnPoint));
if ((gGamestate != CREDITS_SEQUENCE) && (gModeSelection != BATTLE)) {
if (course->bSpawnFinishline) {
gWorldInstance.AddActor(new AFinishline(course->FinishlineSpawnPoint));
}
}
gEditor.AddLight("Sun", nullptr, D_800DC610[1].l->l.dir);
course->BeginPlay();