From 2b5ae842da9c3157586b74b873e666cc435c4104 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Thu, 29 Feb 2024 13:08:53 +0100 Subject: [PATCH] Fix wall facing the wrong way --- src/lightmapper/doom_levelmesh.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lightmapper/doom_levelmesh.cpp b/src/lightmapper/doom_levelmesh.cpp index 43d5acc..e97f846 100644 --- a/src/lightmapper/doom_levelmesh.cpp +++ b/src/lightmapper/doom_levelmesh.cpp @@ -279,12 +279,12 @@ void DoomLevelMesh::AddWallVertices(DoomLevelMeshSurface& surf, FFlatVertex* ver Mesh.Vertices.Push(verts[3]); unsigned int startVertIndex = surf.MeshLocation.StartVertIndex; + Mesh.Indexes.Push(startVertIndex + 2); + Mesh.Indexes.Push(startVertIndex + 1); Mesh.Indexes.Push(startVertIndex + 0); Mesh.Indexes.Push(startVertIndex + 1); Mesh.Indexes.Push(startVertIndex + 2); Mesh.Indexes.Push(startVertIndex + 3); - Mesh.Indexes.Push(startVertIndex + 2); - Mesh.Indexes.Push(startVertIndex + 1); surf.Bounds = GetBoundsFromSurface(surf); }