# HG changeset patch # User LordOfWar # Date 2009-07-05 23:58:24 # Node ID 57cdad6d572a994f908aa84cc4e57a2ff54e764f # Parent abe4f18bd8981557ac8bdbdd639bb7dc614c3d90 removed unexisting frame count variable, and left the brackets for frameset struct empty, I will be creating the struct with frame_num_struct_builder... hopefully it lets me do that. fixed the error in creating a variable in the for statement... I'm used to doing that in Java. I just created the variable before hand. diff --git a/src/server/distrend.c b/src/server/distrend.c --- a/src/server/distrend.c +++ b/src/server/distrend.c @@ -72,7 +72,7 @@ struct { int frame_num; // frame number to render char slave_name; // user that frame is assigned to int frame_status; // status of frame, 0= unassigned, 1= taken, 2= done -} frameset[frame_count]; // Frame count is the frame number if the animation starts on zero... but animations start at frame 1 +} frameset[]; // Frameset array is generated by status_report_generator function // Using this method to save memory, because if animation starts on a high frame number, it would waste a lot of RAM on empty structures // -- end of Matthew's handywork -- @@ -288,8 +288,9 @@ int frame_finder(){ int finder_jobnum = 0; int frameset_count = 0; // the frameset number, note* frames in an animation don't start at zero short int done = 0; + int priority = 10; - for(int priority = 10; priority >= 1; priority--){ // start the scan for the next job with the highest priority + for(priority; priority >= 1; priority--){ // 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){