Re: [CODE] 2 odd things that haunt me..

From: George (greerga@MIAVX1.ACS.MUOHIO.EDU)
Date: 07/14/97


On Mon, 14 Jul 1997 angus@EDGIL.CCMAIL.COMPUSERVE.COM wrote:

>1)  When a player quits or rents (quiting is ok on my mud) then returns
>immediately from the main menu they end up back where they originally
>entered the game rather than where they quit/rented.  I have replaced
>almost every instance of save_char(ch, NOWHERE) with ch->in_room, but to
>no avail... anybody else experience this?
>
>
>     try this in your quit routine:
>
>           int save_room;
>           save_room = ch->in_room;
>           extract_char(ch);      <<<-------   kicks you out of the rooms.
>           ch->in_room = world[save_room].number;  <<<---- just fake it,
>           save_char(ch, ch->in_room);

I would recommend you don't do that because extract_char() dumps all the eq
and calls Crash_delete_crashfile().

-George


      +-----------------------------------------------------------+
      | Ensure that you have read the CircleMUD Mailing List FAQ: |
      |   http://cspo.queensu.ca/~fletcher/Circle/list-faq.html   |
      +-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST