algorithm.c
changeset 13 c2b272938a1f
parent 12 a2c334a71a6b
child 16 fe078fb2e8b4
equal deleted inserted replaced
12:a2c334a71a6b 13:c2b272938a1f
   603 	int num_new_movements;
   603 	int num_new_movements;
   604 
   604 
   605 	CopyMap(&maps[0], &origin);
   605 	CopyMap(&maps[0], &origin);
   606 
   606 
   607 	fill_deps(&maps[0]);
   607 	fill_deps(&maps[0]);
       
   608 	/* Initializing actual_map here AT LEAST gives protection against
       
   609 	SIGSEGV */
       
   610 	actual_map = &maps[0];
   608 	assert(!are_there_fixed_boxes(&maps[0], new_movements,
   611 	assert(!are_there_fixed_boxes(&maps[0], new_movements,
   609 		&num_new_movements));
   612 		&num_new_movements));
   610 	search_did_found(maps, 0, new_movements, num_new_movements, 100, 0);
   613 	search_did_found(maps, 0, new_movements, num_new_movements, 100, 0);
   611 
   614 
   612 	return 0;
   615 	return 0;