this:
Code:
vec_to_mesh(vector(0,0,dest[iloop+1][eloop+1]), waterent, (iloop*20)/2+(eloop+1)/2);


instead of what is already there,
halfs the reference value. This works, but then only a quarter of the terrain is used. The simulation also has noticeable 'waves' with this alteration