Re: Paintball Scoreboard Problems

From: Aaron Throckmorton (throck@nfinity.com)
Date: 03/02/99


> Source Code:
> -------------------
>
> for (d = descriptor_list; d; d = d->next) {
>     if (d->connected)
>       continue;

Right here, if the character is connected, the for loop continues,
therefore the rest of the code doesn't get executed.  Maybe try

        if (!d->connected)

>     if (d->original)
>       wch = d->original;
>     else if (!(wch = d->character))
>       continue;
>    if (PRF_FLAGGED(wch, PRF_PAINTBALL))
>      sprintf(scorebuf,"%s %15s Individual %d      None"
>      ,scorebuf,GET_NAME(wch),GET_SCORE(wch));


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