MCPcopy Create free account
hub / github.com/NetHack/NetHack / sel_flood_havepoint

Function sel_flood_havepoint

src/selvar.c:378–392  ·  view source on GitHub ↗

check whethere is already in xs[],ys[] */

Source from the content-addressed store, hash-verified

376
377/* check whethere <x,y> is already in xs[],ys[] */
378staticfn boolean
379sel_flood_havepoint(
380 coordxy x, coordxy y,
381 coordxy xs[], coordxy ys[],
382 int n)
383{
384 coordxy xx = x, yy = y;
385
386 while (n > 0) {
387 --n;
388 if (xs[n] == xx && ys[n] == yy)
389 return TRUE;
390 }
391 return FALSE;
392}
393
394void
395selection_floodfill(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected