# | Line 301 | Line 301 | register short (*rnl)[NNEIGH]; | |
---|---|---|
301 | nd[NNEIGH-1] = MAXRAD2; | |
302 | for (hoff = 0; hoff < hres; hoff = (hoff<=0) - hoff) { | |
303 | h2 = h + hoff; | |
304 | < | if (h2 < 0 | h2 >= hres) |
304 | > | if ((h2 < 0) | (h2 >= hres)) |
305 | continue; | |
306 | if ((h2-h)*(h2-h) >= nd[NNEIGH-1]) | |
307 | break; | |
308 | for (n = 0; n < NNEIGH && rnl[h2][n] < NINF; n++) { | |
309 | d = (h2-h)*(h2-h) + (v-rnl[h2][n])*(v-rnl[h2][n]); | |
310 | < | if (d == 0 | d >= nd[NNEIGH-1]) |
310 | > | if ((d == 0) | (d >= nd[NNEIGH-1])) |
311 | continue; | |
312 | if (nn < NNEIGH) /* insert neighbor */ | |
313 | nn++; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |