Re: do_who boot time high question

From: Andrew Jones (andjones@MCI2000.COM)
Date: 08/07/98


shouldn't it be like this:
        if(num_can_see > boot_high)
        {
           boot_high = num_can_see;
        }
rather than:
        if(num_can_see < boot_high)
        {
           boot_high = num_can_see;
        }
Because if the number that you can see is higher than boot_high, then it
should become the boot_high not the other way around.
Andrew
> -----Original Message-----
> From: Circle Discussion List [mailto:CIRCLE@post.queensu.ca]On Behalf Of
> Matt Roach
> Sent: Friday, August 07, 1998 12:34 AM
> To: CIRCLE@post.queensu.ca
> Subject:  do_who boot time high question
>
>
> Ok, I've written my own do_who and right now Im trying to add a boot time
> high to it, currently I've tried this but it hasn't worked, can you see
> whats wrong, because I can't seem to figure it out, thanks in advance.
>
> at the top of the file in the defines I got:
> static int boot_high;
>
> and then at the end of the file I got:
> if(num_can_see < boot_high)
> {
>    boot_high = num_can_see;
> }
>
> sprintf(buf, "There is a boot time high of %d character%s.\r\n",
> boot_high,
>    (boot_high == 1) ? "" : "s");
> send_to_char(buf, ch);
>
> }
> ******************************************************************
> *************
> * Matt Roach -- Creator of OnyxMUD, Coder and Builder for
> WinterMUTE          *
> * mute.ml.org 6666 (WinterMUTE)
>             *
> * winter@geek.net
>             *
> ******************************************************************
> *************
>
>
>      +------------------------------------------------------------+
>      | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>      | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
>      +------------------------------------------------------------+
>


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