mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Minor bit of neatening, remove CHAIN_SURF alias, so it's clearer what is being used where.
This commit is contained in:
parent
6c7701a38b
commit
8db859b77c
1 changed files with 5 additions and 11 deletions
|
@ -81,12 +81,6 @@ msurface_t **sky_chain_tail;
|
||||||
(chain) = (surf); \
|
(chain) = (surf); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#if 1
|
|
||||||
# define CHAIN_SURF CHAIN_SURF_F2B
|
|
||||||
#else
|
|
||||||
# define CHAIN_SURF CHAIN_SURF_B2F
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern int lightmap_textures;
|
extern int lightmap_textures;
|
||||||
extern qboolean lightmap_modified[MAX_LIGHTMAPS];
|
extern qboolean lightmap_modified[MAX_LIGHTMAPS];
|
||||||
extern glpoly_t *lightmap_polys[MAX_LIGHTMAPS];
|
extern glpoly_t *lightmap_polys[MAX_LIGHTMAPS];
|
||||||
|
@ -368,7 +362,7 @@ R_DrawBrushModel (entity_t *e)
|
||||||
}
|
}
|
||||||
} else if (psurf->flags & SURF_DRAWSKY) {
|
} else if (psurf->flags & SURF_DRAWSKY) {
|
||||||
// QSG FIXME: add modelalpha support for sky brushes
|
// QSG FIXME: add modelalpha support for sky brushes
|
||||||
CHAIN_SURF (psurf, sky_chain);
|
CHAIN_SURF_F2B (psurf, sky_chain);
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
texture_t *tex;
|
texture_t *tex;
|
||||||
|
@ -453,21 +447,21 @@ R_RecursiveWorldNode (mnode_t *node)
|
||||||
continue; // wrong side
|
continue; // wrong side
|
||||||
|
|
||||||
if (surf->flags & SURF_DRAWTURB) {
|
if (surf->flags & SURF_DRAWTURB) {
|
||||||
CHAIN_SURF_B2F (surf, waterchain);
|
CHAIN_SURF_B2F (surf, waterchain);
|
||||||
} else if (surf->flags & SURF_DRAWSKY) {
|
} else if (surf->flags & SURF_DRAWSKY) {
|
||||||
CHAIN_SURF (surf, sky_chain);
|
CHAIN_SURF_F2B (surf, sky_chain);
|
||||||
} else {
|
} else {
|
||||||
texture_t *tex;
|
texture_t *tex;
|
||||||
|
|
||||||
if (!surf->texinfo->texture->anim_total)
|
if (!surf->texinfo->texture->anim_total)
|
||||||
tex = surf->texinfo->texture;
|
tex = surf->texinfo->texture;
|
||||||
else
|
else
|
||||||
tex = R_TextureAnimation (surf);
|
tex = R_TextureAnimation (surf);
|
||||||
if (tex->gl_fb_texturenum > 0) {
|
if (tex->gl_fb_texturenum > 0) {
|
||||||
surf->polys->fb_chain = fullbright_polys[tex->gl_fb_texturenum];
|
surf->polys->fb_chain = fullbright_polys[tex->gl_fb_texturenum];
|
||||||
fullbright_polys[tex->gl_fb_texturenum] = surf->polys;
|
fullbright_polys[tex->gl_fb_texturenum] = surf->polys;
|
||||||
}
|
}
|
||||||
CHAIN_SURF (surf, tex->texturechain);
|
CHAIN_SURF_F2B (surf, tex->texturechain);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue