* rest_rooms : That's for restoring rooms. Read the rooms structure from * the disk. */
| 890 | * the disk. |
| 891 | */ |
| 892 | void |
| 893 | rest_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; |