Re: [CODE] char idling

From: Angus Mezick (angus@EDGIL.CCMAIL.COMPUSERVE.COM)
Date: 06/15/98


what about CON_?EDIT
or whatever the CON_ for boards is.
--Angus

______________________________ Forward Header __________________________________
Subject: Re:  [CODE] char idling
Author:  INTERNET:CIRCLE@POST.QUEENSU.CA at CSERVE
Date:    6/12/98 5:09 PM

On Fri, 12 Jun 1998, Andrey Fidrya wrote:

> Hi, All!
>
> Piece of code from comm.c:
> void check_idle_passwords(void)
> {
>   struct descriptor_data *d, *next_d;
>
>   for (d = descriptor_list; d; d = next_d) {
>     next_d = d->next;
>     if (STATE(d) != CON_PASSWORD && STATE(d) != CON_GET_NAME)
>       continue;
> ^^^ This way player will idle out only if he is currently at password or name
> prompt... Is there any reason to not add "CON_GET_SEX", "CON_GET_CLASS" and
> others to there?
>
>   Andrey (andrey@alex-ua.com)
>     aka Zmey//RMUD
>

How bout if (STATE(d) == CON_PLAYING)
              continue;

that way all others than playing will be included, just a thourght :)


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