light: trace: raise stack depth 128->256 to handle lavabloom_bad.bsp from Pritchard

This commit is contained in:
Eric Wasylishen 2016-07-12 00:21:14 -06:00
parent 992b2e51bc
commit e82f67eb34
1 changed files with 2 additions and 1 deletions

View File

@ -444,7 +444,7 @@ typedef struct {
* TraceLine
* ==============
*/
#define MAX_TSTACK 128
#define MAX_TSTACK 256
int
TraceLine(const dmodel_t *model, const int traceflags,
const vec3_t start, const vec3_t stop)
@ -469,6 +469,7 @@ TraceLine(const dmodel_t *model, const int traceflags,
return TRACE_HIT_NONE;
}
// FIXME: check for stack overflow
// const tracestack_t *const tstack_max = tracestack + MAX_TSTACK;
if (traceflags <= 0)