Fix wall facing the wrong way

This commit is contained in:
Magnus Norddahl 2024-02-29 13:08:53 +01:00
parent a6d3958ad2
commit 2b5ae842da

View file

@ -279,12 +279,12 @@ void DoomLevelMesh::AddWallVertices(DoomLevelMeshSurface& surf, FFlatVertex* ver
Mesh.Vertices.Push(verts[3]); Mesh.Vertices.Push(verts[3]);
unsigned int startVertIndex = surf.MeshLocation.StartVertIndex; 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 + 0);
Mesh.Indexes.Push(startVertIndex + 1); Mesh.Indexes.Push(startVertIndex + 1);
Mesh.Indexes.Push(startVertIndex + 2); Mesh.Indexes.Push(startVertIndex + 2);
Mesh.Indexes.Push(startVertIndex + 3); Mesh.Indexes.Push(startVertIndex + 3);
Mesh.Indexes.Push(startVertIndex + 2);
Mesh.Indexes.Push(startVertIndex + 1);
surf.Bounds = GetBoundsFromSurface(surf); surf.Bounds = GetBoundsFromSurface(surf);
} }