Changeset - 57cdad6d572a
[Not reviewed]
default
0 1 0
LordOfWar - 16 years ago 2009-07-05 23:58:24

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.
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/server/distrend.c
Show inline comments
 
@@ -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){
0 comments (0 inline, 0 general)