diff --git a/src/DETHRACE/common/globvars.c b/src/DETHRACE/common/globvars.c index a0b92f9c..5fbc8c47 100644 --- a/src/DETHRACE/common/globvars.c +++ b/src/DETHRACE/common/globvars.c @@ -191,6 +191,7 @@ br_font* gHeadup_font; // GLOBAL: CARM95 0x005454b8 tU32 gRace_finished; +// GLOBAL: CARM95 0x0054B244 tU32 gFrame_start_time; // GLOBAL: CARM95 0x00546930 diff --git a/src/DETHRACE/common/piping.c b/src/DETHRACE/common/piping.c index 7e13dcf5..eed1f1f0 100644 --- a/src/DETHRACE/common/piping.c +++ b/src/DETHRACE/common/piping.c @@ -1455,8 +1455,9 @@ void ApplyOilSpill(tPipe_chunk** pChunk, tU32 pStop_time) { void ApplyFrameBoundary(tPipe_chunk** pChunk) { tU32 result; - gLast_replay_frame_time = (*pChunk)->chunk_data.frame_boundary_data.time; - // DAT_0054b244 = PDGetTotalTime(); + result = (*pChunk)->chunk_data.frame_boundary_data.time; + gLast_replay_frame_time = result; + gFrame_start_time = PDGetTotalTime(); AdvanceChunkPtr(pChunk, ePipe_chunk_frame_boundary); }