Re: [CODE] [HELP/REQUEST] 128 bit code

From: Aaron Throckmorton (throck@NFINITY.COM)
Date: 10/01/98


The defines here are setting PRF_COLOR_X up as constants.  These should
be (1 << 13) and (1 << 14) respectively.

> #define PRF_COLOR_1     13 /* Color (low bit)                   */
> #define PRF_COLOR_2     14 /* Color (high bit)                  */
>                     ^I have tried spaces and a tab here
> #define PERS(ch, vict)   (CAN_SEE(vict, ch) ? GET_NAME(ch) : "someone")
>

comm.c:964  color = (PRF_FLAGGED(ch, PRF_COLOR_1 || PRF_COLOR_2) ? 1 :
0);

This line uses the PRF_FLAGGED macro, which in turn uses about 3 other
macros.  What it comes down to is a bitwise AND (&) checking against the
players preferences, which is a bitvector.

If I am wrong about this, I apologize.  Hope this helps.

throck


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