From 0e67d9d9b679bfdff7fb03d29df7fc98d8dce6c6 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Fri, 8 Mar 2024 11:14:03 -0500 Subject: [PATCH] Improve match --- LEGO1/tgl/d3drm/unk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LEGO1/tgl/d3drm/unk.cpp b/LEGO1/tgl/d3drm/unk.cpp index d61990d7..43817689 100644 --- a/LEGO1/tgl/d3drm/unk.cpp +++ b/LEGO1/tgl/d3drm/unk.cpp @@ -79,7 +79,7 @@ inline Result CreateMesh( rpMesh->groupMesh = pD3DRM; for (int i = 0; i < count; i++) { - if (*((unsigned char*) ((unsigned short*) &faceIndices[i] + 1) + 1) & 0x80) { + if ((*((unsigned short*) &faceIndices[i] + 1) >> 0x0f) & 0x01) { unsigned long j = *(unsigned short*) &faceIndices[i]; vertices[index].position.x = pPositions[j][0]; vertices[index].position.y = pPositions[j][1];