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

Function has_upstairs

src/mkroom.c:652–663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

650}
651
652boolean
653has_upstairs(struct mkroom *sroom)
654{
655 stairway *stway = gs.stairs;
656
657 while (stway) {
658 if (stway->up && inside_room(sroom, stway->sx, stway->sy))
659 return TRUE;
660 stway = stway->next;
661 }
662 return FALSE;
663}
664
665int
666somex(struct mkroom *croom)

Callers 4

mkshopFunction · 0.85
pick_roomFunction · 0.85
mkswampFunction · 0.85

Calls 1

inside_roomFunction · 0.85

Tested by

no test coverage detected