}
}
p+=*conc*my_info->a_cp*URAND_MAX;
+ printf("debug: %f - %u\n",p,URAND_MAX);
if(!(*thiz&AMORPH))
{
if(get_rand(URAND_MAX)<=p) MAKE_AMORPH(thiz);
return 1;
}
-int distrib_c(d3_lattice *d3_l,info *my_info)
+int distrib_c(d3_lattice *d3_l,info *my_info,int step)
{
u32 x,y,z;
int i,j,k,c;
z=get_rand_lgp(d3_l->max_z,my_info->a_cd,my_info->b_cd);
*(d3_l->extra+x+y*d3_l->max_x+z*d3_l->max_x*d3_l->max_y)+=1;
+ if(step%my_info->diff_rate==0)
+ {
+
for(i=0;i<d3_l->max_x;i++)
{
for(j=0;j<d3_l->max_y;j++)
} /* for y */
} /* for x */
+ } /* if step modulo diff_rate == 0 */
+
return 1;
}
x_c=get_rand(d3_l.max_x);
y_c=get_rand(d3_l.max_y);
z_c=get_rand_lgp(d3_l.max_z,my_info.a_el,my_info.b_el);
- if(i%my_info.diff_rate==0) distrib_c(&d3_l,&my_info);
+ distrib_c(&d3_l,&my_info);
process_cell(&d3_l,x_c,y_c,z_c,&my_info);
#ifdef USE_DFB_API
if(i%refresh==0)