Re: Eric Green's Ident patch

From: Daniel A. Koepke (dkoepke@california.com)
Date: 11/22/99


On Sun, 21 Nov 1999, Damian Jurzysta wrote:

> just trying to remove:
>
>       if (!get_from_q(&d->input, comm, &aliased))
>         continue;
>
> from bpl16 and replacing it with:
>
>       if (!waiting_for_ident(d) && (--(d->wait) <= 0) &&
>       get_from_q(&d->input, comm, &aliased)) {

A quick examination of bpl16 reveals that George changed the beginning of
this loop's block to look like,

    if (d->character) {
      GET_WAIT_STATE(d->character) -= (GET_WAIT_STATE(d->character) > 0);

      if (GET_WAIT_STATE(d->character))
        continue;
    }

    if (!get_from_q(&d->input, comm, &aliased))
      continue;

To implement the waiting_for_ident() check, you would add the following
before the "if (d->character)" check:

    if (waiting_for_ident(d))
      continue;

-dak


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



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