diff --git a/src/server/distrend.c b/src/server/distrend.c --- a/src/server/distrend.c +++ b/src/server/distrend.c @@ -224,10 +224,10 @@ int frame_finder(){ short int done = 0; short int priority = 10; - while(priority >= 1){ // start the scan for the next job with the highest priority + while(priority >= 1){ // start the scan for the next job with the highest priority, decreases priority before it loops finder_jobnum = hcfjob + 1; // reset it to start scanning at first uncompleted job for the pass at each priority level - while(finder_jobnum <= highest_jobnum){ + while(finder_jobnum <= highest_jobnum){ // This keeps increasing the finder_jobnum until it is higher than the highest_jobnum if(blendjob[finder_jobnum].priority == priority){ // looks for a job with the current priority value done = 1; // notice it starts by looking at the oldest job first break; @@ -237,12 +237,12 @@ int frame_finder(){ break; // If none is found it goes to the next job to see if it is of the current priority value else finder_jobnum++; - } + } // End of increasing finder_jobnum if(done == 1) // if job has been found, it lets it out of the priority changer loop break; - priority--; + priority--; // end of decreasing priority } while(your_frame < blendjob[finder_jobnum].total_frames){ // Finds the frameset number with a frame that needs to be rendered