light: add todos about -fence
This commit is contained in:
parent
afbc17d1ea
commit
e0a4b8c113
|
|
@ -443,6 +443,10 @@ TraceLine(const dmodel_t *model, const int traceflags,
|
||||||
tracestack_t tracestack[MAX_TSTACK];
|
tracestack_t tracestack[MAX_TSTACK];
|
||||||
tracestack_t *tstack, *crossnode;
|
tracestack_t *tstack, *crossnode;
|
||||||
tnode_t *tnode;
|
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;
|
// const tracestack_t *const tstack_max = tracestack + MAX_TSTACK;
|
||||||
|
|
||||||
if (traceflags <= 0)
|
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;
|
int facenum = face - bsp_static->dfaces;
|
||||||
const faceinfo_t *fi = &faceinfos[facenum];
|
const faceinfo_t *fi = &faceinfos[facenum];
|
||||||
|
|
||||||
|
// TODO: handle -fence here
|
||||||
|
|
||||||
// only solid and sky faces stop the trace.
|
// only solid and sky faces stop the trace.
|
||||||
if (fi->content == CONTENTS_SOLID || fi->content == CONTENTS_SKY) {
|
if (fi->content == CONTENTS_SOLID || fi->content == CONTENTS_SKY) {
|
||||||
ti->face = face;
|
ti->face = face;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue