]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - prvm_execprogram.h
don't crash if r_restart is used in startup scripts before anything starts the video...
[xonotic/darkplaces.git] / prvm_execprogram.h
index e1159c8fa725ebd7f08d59596cb5104d4ae9baf7..aa72801c45bca0f9c714d7c71f1218053f38da55 100644 (file)
                                        prog->xfunction->profile += (st - startst);
                                        st += st->b - 1;        // offset the s++
                                        startst = st;
-                                       if (++jumpcount == 1000000000)
+                                       if (++jumpcount == 10000000)
                                        {
                                                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);
                                        prog->xfunction->profile += (st - startst);
                                        st += st->b - 1;        // offset the s++
                                        startst = st;
-                                       if (++jumpcount == 1000000000)
+                                       if (++jumpcount == 10000000)
                                        {
                                                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);
                                prog->xfunction->profile += (st - startst);
                                st += st->a - 1;        // offset the s++
                                startst = st;
-                               if (++jumpcount == 1000000000)
+                               if (++jumpcount == 10000000)
                                {
                                        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);