port pr 730 from the decomp (#445)

* port pr 730 from the decomp

Co-Authored-By: Jed Grabman <7600154+jedgrabman@users.noreply.github.com>

* rename file

* small fix

* finish fix time trial

---------

Co-authored-by: Jed Grabman <7600154+jedgrabman@users.noreply.github.com>
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
This commit is contained in:
coco875
2025-07-10 23:11:36 +00:00
committed by GitHub
parent 371adbd7b9
commit 6a8baf8936
44 changed files with 744 additions and 690 deletions
+3 -3
View File
@@ -26,7 +26,7 @@ extern "C" {
#include "render_objects.h"
#include "assets/common_data.h"
#include "save.h"
#include "staff_ghosts.h"
#include "replays.h"
#include "actors.h"
#include "collision.h"
#include "memory.h"
@@ -247,10 +247,10 @@ void RoyalRaceway::WhatDoesThisDoAI(Player* player, int8_t playerId) {
void RoyalRaceway::SetStaffGhost() {
u32 temp_v0 = func_800B4E24(0) & 0xfffff;
if (temp_v0 <= 16000) {
D_80162DD6 = 0;
bCourseGhostDisabled = 0;
D_80162DF4 = 0;
} else {
D_80162DD6 = 1;
bCourseGhostDisabled = 1;
D_80162DF4 = 1;
}
D_80162DC4 = d_royal_raceway_staff_ghost;