On Wed, 15 Apr 1998, Chris Powell wrote:
> for (i = 0; i <= top_of_zone_table; i++ ) {
> switch (subcmd) {
> case SCMD_RSAVE: redit_save_to_disk(i); break;
> case SCMD_ZSAVE: zedit_save_to_disk(i); break;
> case SCMD_OSAVE: oedit_save_to_disk(i); break;
> case SCMD_MSAVE: medit_save_to_disk(i); break;
> case SCMD_SSAVE: sedit_save_to_disk(i); break;
> }
D'oh, talk about excessive. :)
(Actually, OasisOLC v2.0 has a save_all() function...)
Anyway, there's already code in OasisOLC v1.6b to do this, look at comm.c
in init_game();
It only saves what needs to be saved.
--
George Greer - Me@Null.net | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST