light: add todos about -fence

This commit is contained in:
Eric Wasylishen 2016-06-09 01:48:47 -06:00
parent afbc17d1ea
commit e0a4b8c113
1 changed files with 6 additions and 0 deletions

View File

@ -443,6 +443,10 @@ TraceLine(const dmodel_t *model, const int traceflags,
tracestack_t tracestack[MAX_TSTACK];
tracestack_t *tstack, *crossnode;
tnode_t *tnode;
// TODO: if -fence mode is enabled, and model is not the world,
// instead test with TraceFaces
// const tracestack_t *const tstack_max = tracestack + MAX_TSTACK;
if (traceflags <= 0)
@ -708,6 +712,8 @@ bool TraceFaces (traceinfo_t *ti, int node, const vec3_t start, const vec3_t end
int facenum = face - bsp_static->dfaces;
const faceinfo_t *fi = &faceinfos[facenum];
// TODO: handle -fence here
// only solid and sky faces stop the trace.
if (fi->content == CONTENTS_SOLID || fi->content == CONTENTS_SKY) {
ti->face = face;