From d66b0d5844afedab3b84bd32dc9cd914b3aaf25f Mon Sep 17 00:00:00 2001 From: Dethrace Labs <78985374+dethrace-labs@users.noreply.github.com> Date: Sun, 25 Jan 2026 12:10:19 +1300 Subject: [PATCH] WallUntexToPersp matching --- src/DETHRACE/common/world.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/DETHRACE/common/world.c b/src/DETHRACE/common/world.c index 16ba02b8..36e5ac0e 100644 --- a/src/DETHRACE/common/world.c +++ b/src/DETHRACE/common/world.c @@ -2248,13 +2248,13 @@ br_material* WallUntexToPersp(br_model* pModel, tU16 pFace) { old_mat = pModel->faces[pFace].material; if (HasThisSuffix(old_mat->identifier, ".lwall")) { - new_mat = UnsuffixedMaterial(old_mat->identifier, ".lwall"); - } else if (HasThisSuffix(old_mat->identifier, ".pwall")) { - new_mat = UnsuffixedMaterial(old_mat->identifier, ".pwall"); - } else { - new_mat = NULL; + return UnsuffixedMaterial(old_mat->identifier, ".lwall"); } - return new_mat; + if (HasThisSuffix(old_mat->identifier, ".pwall")) { + return UnsuffixedMaterial(old_mat->identifier, ".pwall"); + } + + return NULL; } // IDA: br_material* __usercall WallLinearToPersp@(br_model *pModel@, tU16 pFace@)