Re: who and where while in Oasis's OLC

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


A side note for your last email, if you add more olc states, you will
have to fix
the IS_BUILDING macro..
Thats why I put it as > CON_DISCONNECT, cause all OLC states above it.
No fixing or using of macros.


"Jon A. Nielsen" wrote:
>
> > Does anyone know why when your in zedit, redit, medit or sedit that you
> > don't show up on where or who?  I would prefer that I could see them,
> > maybe set a lvl their visible to when doing this.
>
> It's because when you're building, you're not in CON_PLAYING (you're in one
> of the CON_xEDIT states if you're using Oasis).  The solution that I came up
> with was to create an IS_BUILDING macro and replace "if (d->connected)" in
> do_who with "if (d->connected && !IS_BUILDING(d))"  Here's my IS_BUILDING
> macro:
>
> #define IS_BUILDING(d)  ((d)->connected == CON_REDIT || \
>                          (d)->connected == CON_MEDIT || \
>                          (d)->connected == CON_OEDIT || \
>                          (d)->connected == CON_SEDIT || \
>                          (d)->connected == CON_ZEDIT)
>
> ___
> 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