fix issue introduced in e5ef665e:Use more short code in *EdgeSearch

This commit is contained in:
Denis Pauk 2018-07-30 15:47:00 +03:00
parent 27cbd0d4e7
commit cf4887c4ba

View file

@ -419,8 +419,10 @@ R_LeadingEdgeSearch (edge_t *edge, surf_t *surf, surf_t *surf2)
testzi = surf2->d_ziorigin + fv*surf2->d_zistepv +
fu*surf2->d_zistepu;
if (newzibottom < testzi)
if (newzibottom >= testzi)
{
return surf2;
}
newzitop = newzi * 1.01;
}