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

Function nexttodoor

src/mkroom.c:622–637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

620}
621
622boolean
623nexttodoor(int sx, int sy)
624{
625 int dx, dy;
626 struct rm *lev;
627
628 for (dx = -1; dx <= 1; dx++)
629 for (dy = -1; dy <= 1; dy++) {
630 if (!isok(sx + dx, sy + dy))
631 continue;
632 lev = &levl[sx + dx][sy + dy];
633 if (IS_DOOR(lev->typ) || lev->typ == SDOOR)
634 return TRUE;
635 }
636 return FALSE;
637}
638
639boolean
640has_dnstairs(struct mkroom *sroom)

Callers 2

mkswampFunction · 0.85
gushFunction · 0.85

Calls 1

isokFunction · 0.85

Tested by

no test coverage detected