git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12200
d7cf8633-e32d-0410-b094-
e92efae38249
}
}
planeindex = bestplaneindex;
}
}
planeindex = bestplaneindex;
- p = r_fb.water.waterplanes + planeindex;
// if this surface does not fit any known plane rendered this frame, add one
if (planeindex < 0 || bestplanescore > 0.001f)
// if this surface does not fit any known plane rendered this frame, add one
if (planeindex < 0 || bestplanescore > 0.001f)
else
{
// merge mins/maxs when we're adding this surface to the plane
else
{
// merge mins/maxs when we're adding this surface to the plane
+ p = r_fb.water.waterplanes + planeindex;
p->mins[0] = min(p->mins[0], mins[0]);
p->mins[1] = min(p->mins[1], mins[1]);
p->mins[2] = min(p->mins[2], mins[2]);
p->mins[0] = min(p->mins[0], mins[0]);
p->mins[1] = min(p->mins[1], mins[1]);
p->mins[2] = min(p->mins[2], mins[2]);