* save_room : A recursive function that saves a room and its subrooms * (if any). */
| 841 | * (if any). |
| 842 | */ |
| 843 | staticfn void |
| 844 | save_room(NHFILE *nhfp, struct mkroom *r) |
| 845 | { |
| 846 | short i; |
| 847 | |
| 848 | /* |
| 849 | * Well, I really should write only useful information instead |
| 850 | * of writing the whole structure. That is I should not write |
| 851 | * the gs.subrooms pointers, but who cares ? |
| 852 | */ |
| 853 | Sfo_mkroom(nhfp, r, "room-mkroom"); |
| 854 | for (i = 0; i < r->nsubrooms; i++) { |
| 855 | save_room(nhfp, r->sbrooms[i]); |
| 856 | } |
| 857 | } |
| 858 | |
| 859 | /* |
| 860 | * save_rooms : Save all the rooms on disk! |