Re: who and where while in Oasis's OLC

From: Del (caminturn@earthlink.net)
Date: 02/13/00


If you add more olc states, they will be higher than CON_DISCONNECT
so this will work 100% of the time.


"Jon A. Nielsen" wrote:
>
> > This is what I did to do_who
> >
> >   for (d = descriptor_list; d; d = d->next) {
> >     if (STATE(d) != CON_PLAYING) {
> >        if (STATE(d) <= CON_DISCONNECT) /* olc states are > than
> > CON_DISCONNECT */
>
> That works as well;  the only reason I didn't do that is because if you add
> another OLC function, it will probably be out of that range, so I just
> created the IS_BUILDING macro so that you can just add new olc states to it.
>
> ___
> Jon A. Nielsen
> Lazarus of Spear of Insanity MUD
> spear.kilnar.com:1066
> http://spear.kilnar.com/
>
>      +------------------------------------------------------------+
>      | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>      |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
>      +------------------------------------------------------------+


     +------------------------------------------------------------+
     | 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 : 04/10/01 PDT