Re: Oasis - Fatal Problems [FIXED(?)]

From: John Evans (evansj@HI-LINE.NET)
Date: 08/31/97


On Sun, 31 Aug 1997, John Evans wrote:

> INSERT the following after the above code:
>   if ((d->connected == CON_OEDIT) || (d->connected == CON_REDIT) ||
>       (d->connected == CON_ZEDIT) || (d->connected == CON_MEDIT) ||
>       (d->connected == CON_SEDIT)) {
>     cleanup_olc(d, 1);  /* Same as cleanup_olc(d, CLEANUP_ALL); */
>     d->connected = CON_PLAYING;
>   }

Oops...
cleanup_olc() sets connectedness to CON_PLAYING, so there is no need to
do it again. Just remove:
d->connected = CON_PLAYING;
to remove the redundant declaration.

This means that the code should read:
  if ((d->connected == CON_OEDIT) || (d->connected == CON_REDIT) ||
      (d->connected == CON_ZEDIT) || (d->connected == CON_MEDIT) ||
      (d->connected == CON_SEDIT)) {
    cleanup_olc(d, 1);  /* Same as cleanup_olc(d, CLEANUP_ALL); */
  }

Also, you need to declare cleanup_olc() in comm.c. I did it at the top of
the file by adding:
  extern void cleanup_olc(struct descriptor_data *d, byte cleanup_type);


John Evans
mailto: evansj@hi-line.net    http://www.hi-line.net/~evansj

I don't suffer from Insanity!  I enjoy every minute of it!


     +------------------------------------------------------------+
     | 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