diff options
| author | kasull <qsullian@gmail.com> | 2026-03-01 12:43:48 -0500 |
|---|---|---|
| committer | kasull <qsullian@gmail.com> | 2026-03-01 12:43:48 -0500 |
| commit | ed8c3cee0a9e6e1efbf8e0b0dc9ba0eaafac0f29 (patch) | |
| tree | a04d8d573f92ad758b5be3f4c1c9386fef88f988 | |
| parent | da27ee18bef82c2152e348e8ff805cb64c80643e (diff) | |
changed wall bsp face generation to create one quad face per wall instead of 2 triangles
| -rw-r--r-- | src/game/world/bsp.cpp | 19 |
1 files changed, 7 insertions, 12 deletions
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_FACE> 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 ); |
