X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=prvm_execprogram.h;h=e1159c8fa725ebd7f08d59596cb5104d4ae9baf7;hb=844bad4f7cddcc970715f9fc9d22d74896cc9df4;hp=aa79fdb3648c4966f3e7dda0d79c8bbd866aa597;hpb=66971055da035d25f4c946a3e897ac637c5de2f6;p=xonotic%2Fdarkplaces.git 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);