From 6758707f63309fc10e861cd6505b0016d3f50e2a Mon Sep 17 00:00:00 2001 From: Dethrace Labs <78985374+dethrace-labs@users.noreply.github.com> Date: Mon, 1 Dec 2025 17:06:23 +1300 Subject: [PATCH] UndoSkidAdjustment matching --- src/DETHRACE/common/piping.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/DETHRACE/common/piping.c b/src/DETHRACE/common/piping.c index 2d1d5f75..65898923 100644 --- a/src/DETHRACE/common/piping.c +++ b/src/DETHRACE/common/piping.c @@ -2032,11 +2032,6 @@ void UndoSplash(tPipe_chunk** pChunk, tPipe_chunk* pPrev_chunk) { if (pPrev_chunk != NULL) { ApplySplash(&temp_prev_chunk); } else { - // if (((*pChunk)->subject_index >> 8) == 0) { - // gProgram_state.current_car.water_d = 10000.f; - // } else { - // GetCarSpec((*pChunk)->subject_index >> 8, (*pChunk)->subject_index & 0xff)->water_d = 10000.f; - // } ((((*pChunk)->subject_index >> 8) == 0) ? &gProgram_state.current_car : GetCarSpec((*pChunk)->subject_index >> 8, (*pChunk)->subject_index & 0xff))->water_d = 10000.f; } gDisable_advance = 0; @@ -2069,10 +2064,10 @@ void UndoProxRay(tPipe_chunk** pChunk) { void UndoSkidAdjustment(tPipe_chunk** pChunk, tPipe_chunk* pPrev_chunk) { gDisable_advance = 1; - if (pPrev_chunk == NULL) { - HideSkid((*pChunk)->subject_index); - } else { + if (pPrev_chunk != NULL) { ApplySkidAdjustment(&pPrev_chunk); + } else { + HideSkid((*pChunk)->subject_index); } gDisable_advance = 0; AdvanceChunkPtr(pChunk, ePipe_chunk_skid_adjustment);