From e0a4b8c113c8571f05fe7b34e79155c61b0cb6a8 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Thu, 9 Jun 2016 01:48:47 -0600 Subject: [PATCH] light: add todos about -fence --- light/trace.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/light/trace.c b/light/trace.c index 8836f429..03c50339 100644 --- a/light/trace.c +++ b/light/trace.c @@ -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;