diff options
Diffstat (limited to 'src/game/world/bsp.cpp')
| -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 ); |
