Re: [OasisOLC] Exits?

From: George (greerga@DRAGON.HAM.MUOHIO.EDU)
Date: 08/13/97


On Tue, 12 Aug 1997, John Evans wrote:

>This is not a code solution, but a policy one. If someone is editing a
>room, don't make a new room until they are done. Go on and edit something
>else. My staff of builders is very small (less than 10), and only 1-3 are
>on at any one time, so this is not a problem.

In redit_save_internally: add 'struct descriptor_data *dsc;' to the top and
+    /*
+     * Update any rooms being edited.
+     */
+    for (dsc = descriptor_list; dsc; dsc = dsc->next)
+      if (dsc->connected == CON_REDIT)
+        for (j = 0; j < NUM_OF_DIRS; j++)
+          if (OLC_ROOM(dsc)->dir_option[j])
+            if (OLC_ROOM(dsc)->dir_option[j]->to_room >= room_num)
+              OLC_ROOM(dsc)->dir_option[j]->to_room++;

  }
  olc_add_to_save_list(zone_table[OLC_ZNUM(d)].number, OLC_SAVE_ROOM);
}

and add:
extern struct descriptor_data *descriptor_list;
to the top of the file.

I have not tested it.

I'll include it in Pre#7 of OasisOLC when I have tested it more.
(And also the MobProg patch when I get the time.)

--
greerga@muohio.edu me@null.net | Genius may have its limitations, but stupidity
http://www.muohio.edu/~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/08/00 PST