From: havoc Date: Thu, 25 May 2006 03:54:31 +0000 (+0000) Subject: increased runaway jump count limit to 1000000000 X-Git-Tag: xonotic-v0.1.0preview~3989 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=79ee8371768d8933af77721764286fa885ddb197;p=xonotic%2Fdarkplaces.git increased runaway jump count limit to 1000000000 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6378 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/prvm_execprogram.h b/prvm_execprogram.h index aa79fdb3..e1159c8f 100644 --- a/prvm_execprogram.h +++ b/prvm_execprogram.h @@ -229,7 +229,7 @@ prog->xfunction->profile += (st - startst); st += st->b - 1; // offset the s++ startst = st; - if (++jumpcount> 1000000) + if (++jumpcount == 1000000000) { prog->xstatement = st - prog->statements; PRVM_ERROR("runaway loop counter hit limit of %d jumps\ntip: if having trouble identifying the problem, try typing profile now in %s", jumpcount, PRVM_NAME); @@ -243,7 +243,7 @@ prog->xfunction->profile += (st - startst); st += st->b - 1; // offset the s++ startst = st; - if (++jumpcount> 1000000) + if (++jumpcount == 1000000000) { prog->xstatement = st - prog->statements; PRVM_ERROR("runaway loop counter hit limit of %d jumps\ntip: if having trouble identifying the problem, try typing profile now in %s", jumpcount, PRVM_NAME); @@ -255,7 +255,7 @@ prog->xfunction->profile += (st - startst); st += st->a - 1; // offset the s++ startst = st; - if (++jumpcount> 1000000) + if (++jumpcount == 1000000000) { prog->xstatement = st - prog->statements; PRVM_ERROR("runaway loop counter hit limit of %d jumps\ntip: if having trouble identifying the problem, try typing profile now in %s", jumpcount, PRVM_NAME);