From 66e5e6263f8ce6e2b7aa58096dbf82d603da3b95 Mon Sep 17 00:00:00 2001 From: Dethrace Labs <78985374+dethrace-labs@users.noreply.github.com> Date: Sat, 29 Nov 2025 08:25:38 +1300 Subject: [PATCH] ApplyDamage matching --- src/DETHRACE/common/piping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DETHRACE/common/piping.c b/src/DETHRACE/common/piping.c index f4f16b30..b2d0163c 100644 --- a/src/DETHRACE/common/piping.c +++ b/src/DETHRACE/common/piping.c @@ -1539,7 +1539,7 @@ void ApplyDamage(tPipe_chunk** pChunk) { tCar_spec* car; int i; - if (((*pChunk)->subject_index & 0xff00) == 0) { + if (((*pChunk)->subject_index >> 8) == 0) { car = &gProgram_state.current_car; } else { car = GetCarSpec((*pChunk)->subject_index >> 8, (*pChunk)->subject_index & 0x00ff);