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:
Ozkan Sezer 2023-05-17 23:11:10 +03:00
parent ff78de4493
commit 26b3954bf6
1 changed files with 1 additions and 2 deletions

View File

@ -383,7 +383,7 @@ void PR_ExecuteProgram (func_t fnum)
{ {
st++; /* next statement */ st++; /* next statement */
if (++profile > 100000) if (++profile > 0x1000000) /* was 100000 */
{ {
pr_xstatement = st - pr_statements; pr_xstatement = st - pr_statements;
PR_RunError("runaway loop error"); PR_RunError("runaway loop error");
@ -651,4 +651,3 @@ void PR_ExecuteProgram (func_t fnum)
#undef OPA #undef OPA
#undef OPB #undef OPB
#undef OPC #undef OPC