diff --git a/src/server/distrend.c b/src/server/distrend.c --- a/src/server/distrend.c +++ b/src/server/distrend.c @@ -336,7 +336,6 @@ int frame_finder(){ while(priority >= 1){ // start the scan for the next job with the highest priority 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){ 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 @@ -362,14 +361,14 @@ int frame_finder(){ x++; // If frame is assigned or done, it goes to next frame } -blendjob[jobnum].frame_status[x]++; // sets the value of the frame to 2, which means its taken + blendjob[jobnum].frame_status[x]++; // sets the value of the frame to 2, which means its taken -your_frame = blendjob[jobnum].frame_num[x]; // Takes the frameset found in the while statement above, and extracts the frame number from it and assigns it to the int your_frame + your_frame = blendjob[jobnum].frame_num[x]; // Takes the frameset found in the while statement above, and extracts the frame number from it and assigns it to the int your_frame -if(your_frame = null) // If that job had no open frames for some reason, run the status report generator so that - status_report_generator(); //the job priority can be changed to 0 + if(your_frame = null) // If that job had no open frames for some reason, run the status report generator so that + status_report_generator(); //the job priority can be changed to 0 -return your_frame; // your_frame is returned as the frame to be rendered + return your_frame; // your_frame is returned as the frame to be rendered }