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

Function has_dnstairs

src/mkroom.c:639–650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

637}
638
639boolean
640has_dnstairs(struct mkroom *sroom)
641{
642 stairway *stway = gs.stairs;
643
644 while (stway) {
645 if (!stway->up && inside_room(sroom, stway->sx, stway->sy))
646 return TRUE;
647 stway = stway->next;
648 }
649 return FALSE;
650}
651
652boolean
653has_upstairs(struct mkroom *sroom)

Callers 4

mkshopFunction · 0.85
pick_roomFunction · 0.85
mkswampFunction · 0.85

Calls 1

inside_roomFunction · 0.85

Tested by

no test coverage detected