summaryrefslogtreecommitdiff
path: root/src/game/world/bsp.cpp
diff options
context:
space:
mode:
authorkasull <qsullian@gmail.com>2026-03-01 12:43:48 -0500
committerkasull <qsullian@gmail.com>2026-03-01 12:43:48 -0500
commited8c3cee0a9e6e1efbf8e0b0dc9ba0eaafac0f29 (patch)
treea04d8d573f92ad758b5be3f4c1c9386fef88f988 /src/game/world/bsp.cpp
parentda27ee18bef82c2152e348e8ff805cb64c80643e (diff)
changed wall bsp face generation to create one quad face per wall instead of 2 triangles
Diffstat (limited to 'src/game/world/bsp.cpp')
-rw-r--r--src/game/world/bsp.cpp19
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 );