From 86540d6bd49c7b2d2fe2f67277b64d7fdb2ff19a Mon Sep 17 00:00:00 2001 From: Dethrace Labs <78985374+dethrace-labs@users.noreply.github.com> Date: Sat, 29 Nov 2025 07:13:18 +1300 Subject: [PATCH] DoSmudge 80% matching --- src/DETHRACE/common/piping.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/DETHRACE/common/piping.c b/src/DETHRACE/common/piping.c index e9ce8045..187e2317 100644 --- a/src/DETHRACE/common/piping.c +++ b/src/DETHRACE/common/piping.c @@ -1279,6 +1279,7 @@ void DoSmudge(tPipe_chunk** pChunk, int pDir) { tCar_spec* car; int group; + group = 0; if (((*pChunk)->subject_index & 0xff00) == 0) { car = &gProgram_state.current_car; } else { @@ -1288,10 +1289,12 @@ void DoSmudge(tPipe_chunk** pChunk, int pDir) { for (i = 0; i < (*pChunk)->chunk_data.smudge_data.vertex_count; i++) { v = (*pChunk)->chunk_data.smudge_data.vertex_changes[i].vertex_index; inc = (*pChunk)->chunk_data.smudge_data.vertex_changes[i].light_index * pDir; - V11MODEL(model_ptr)->groups->vertex_colours[v] = ((V11MODEL(model_ptr)->groups->vertex_colours[v] >> 24) + inc) << 24; + // this is slightly different due to using BRender 1.3.2 + V11MODEL(model_ptr)->groups->vertex_colours[v] = (BR_ALPHA(V11MODEL(model_ptr)->groups->vertex_colours[v]) + inc) << 24; if (model_ptr->flags & BR_MODF_UPDATEABLE) { - model_ptr->vertices[V11MODEL(model_ptr)->groups->vertex_user[v]].index = (V11MODEL(model_ptr)->groups->vertex_colours[v] >> 24) + inc; + model_ptr->vertices[V11MODEL(model_ptr)->groups->vertex_user[v]].index = BR_ALPHA(V11MODEL(model_ptr)->groups->vertex_colours[v]) + inc; } + // } }