Bump progs execution runaway loop limit to 16M.
The old limit (100000) can be hit in some new maps. The new limit (0x1000000) matches current vkQuake, whereas quakeforge and tyrquake has it as 1000000. Closes https://github.com/sezero/quakespasm/issues/58
This commit is contained in:
parent
ff78de4493
commit
26b3954bf6
|
@ -383,7 +383,7 @@ void PR_ExecuteProgram (func_t fnum)
|
|||
{
|
||||
st++; /* next statement */
|
||||
|
||||
if (++profile > 100000)
|
||||
if (++profile > 0x1000000) /* was 100000 */
|
||||
{
|
||||
pr_xstatement = st - pr_statements;
|
||||
PR_RunError("runaway loop error");
|
||||
|
@ -651,4 +651,3 @@ void PR_ExecuteProgram (func_t fnum)
|
|||
#undef OPA
|
||||
#undef OPB
|
||||
#undef OPC
|
||||
|
||||
|
|
Loading…
Reference in New Issue