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

Function rest_room

src/mkroom.c:874–886  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

872#endif /* !SFCTOOL */
873
874staticfn void
875rest_room(NHFILE *nhfp, struct mkroom *r)
876{
877 short i;
878
879 Sfi_mkroom(nhfp, r, "room-mkroom");
880
881 for (i = 0; i < r->nsubrooms; i++) {
882 r->sbrooms[i] = &gs.subrooms[gn.nsubroom];
883 rest_room(nhfp, &gs.subrooms[gn.nsubroom]);
884 gs.subrooms[gn.nsubroom++].resident = (struct monst *) 0;
885 }
886}
887
888/*
889 * rest_rooms : That's for restoring rooms. Read the rooms structure from

Callers 1

rest_roomsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected