Browse Source

Minor stuff

unrollquadloop
Nico de Poel 3 years ago
parent
commit
de12e4269f
  1. 2
      draw.h
  2. 6
      world.c

2
draw.h

@ -331,7 +331,7 @@ static INLINE void draw_quadstrip_water(const ps1bsp_vertex_t *vertices, const p
gte_stsxy(&poly->x3);
setPolyFT4(poly);
if (semiTrans) poly->code |= 2;
poly->code |= 2 * !!semiTrans;
addPrim(ot, poly);
++polyCount;
}

6
world.c

@ -122,7 +122,7 @@ static void world_drawface_lit(const world_t *world, const ps1bsp_face_t *face,
const ps1bsp_polygon_t* poly = &world->polygons[face->firstPolygon];
for (u_char polyIdx = 0; polyIdx < face->numPolygons; ++polyIdx, ++poly)
{
ps1bsp_polyvertex_t *polyVertices = &world->polyVertices[poly->firstPolyVertex];
const ps1bsp_polyvertex_t *polyVertices = &world->polyVertices[poly->firstPolyVertex];
draw_quadstrip_lit(world->vertices, polyVertices, poly->numPolyVertices, ot);
}
}
@ -137,7 +137,7 @@ static void world_drawface_textured(const world_t *world, const ps1bsp_face_t *f
{
for (u_char polyIdx = 0; polyIdx < face->numPolygons; ++polyIdx, ++poly)
{
ps1bsp_polyvertex_t *polyVertices = &world->polyVertices[poly->firstPolyVertex];
const ps1bsp_polyvertex_t *polyVertices = &world->polyVertices[poly->firstPolyVertex];
draw_quadstrip_water(world->vertices, polyVertices, poly->numPolyVertices, texture->tpage, face->flags & SURF_DRAWWATER, ot);
}
}
@ -145,7 +145,7 @@ static void world_drawface_textured(const world_t *world, const ps1bsp_face_t *f
{
for (u_char polyIdx = 0; polyIdx < face->numPolygons; ++polyIdx, ++poly)
{
ps1bsp_polyvertex_t *polyVertices = &world->polyVertices[poly->firstPolyVertex];
const ps1bsp_polyvertex_t *polyVertices = &world->polyVertices[poly->firstPolyVertex];
draw_quadstrip_textured(world->vertices, polyVertices, poly->numPolyVertices, texture->tpage, ot);
}
}

Loading…
Cancel
Save