From ed8c3cee0a9e6e1efbf8e0b0dc9ba0eaafac0f29 Mon Sep 17 00:00:00 2001 From: kasull Date: Sun, 1 Mar 2026 12:43:48 -0500 Subject: changed wall bsp face generation to create one quad face per wall instead of 2 triangles --- src/game/world/bsp.cpp | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'src/game') diff --git a/src/game/world/bsp.cpp b/src/game/world/bsp.cpp index c6c9726..e163d6e 100644 --- a/src/game/world/bsp.cpp +++ b/src/game/world/bsp.cpp @@ -163,18 +163,13 @@ LIST bsp_map_faces_from_walls( WORLD_MAP* map ) { }; } - BSP_FACE f1{ .propid = w->propid }; - f1.verts.push( vertices[2] ); - f1.verts.push( vertices[1] ); - f1.verts.push( vertices[0] ); - - BSP_FACE f2{ .propid = w->propid }; - f2.verts.push( vertices[3] ); - f2.verts.push( vertices[2] ); - f2.verts.push( vertices[0] ); - - ret.push( f1 ); - ret.push( f2 ); + BSP_FACE f{ .propid = w->propid }; + f.verts.push( vertices[2] ); + f.verts.push( vertices[1] ); + f.verts.push( vertices[0] ); + f.verts.push( vertices[3] ); + + ret.push( f ); }; map->walls.each( triangulate_wall ); -- cgit v1.2.3