|
|
@ -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]; |
|
|
const ps1bsp_polygon_t* poly = &world->polygons[face->firstPolygon]; |
|
|
for (u_char polyIdx = 0; polyIdx < face->numPolygons; ++polyIdx, ++poly) |
|
|
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); |
|
|
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) |
|
|
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); |
|
|
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) |
|
|
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); |
|
|
draw_quadstrip_textured(world->vertices, polyVertices, poly->numPolyVertices, texture->tpage, ot); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|