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

Function rest_rooms

src/mkroom.c:892–906  ·  view source on GitHub ↗

* rest_rooms : That's for restoring rooms. Read the rooms structure from * the disk. */

Source from the content-addressed store, hash-verified

890 * the disk.
891 */
892void
893rest_rooms(NHFILE *nhfp)
894{
895 short i;
896
897 Sfi_int(nhfp, &svn.nroom, "room-nroom");
898
899 gn.nsubroom = 0;
900 for (i = 0; i < svn.nroom; i++) {
901 rest_room(nhfp, &svr.rooms[i]);
902 svr.rooms[i].resident = (struct monst *) 0;
903 }
904 svr.rooms[svn.nroom].hx = -1; /* restore ending flags */
905 gs.subrooms[gn.nsubroom].hx = -1;
906}
907
908#ifndef SFCTOOL
909/* convert a display symbol for terrain into topology type;

Callers 1

getlevFunction · 0.85

Calls 1

rest_roomFunction · 0.85

Tested by

no test coverage detected