Re: [Nebwie] SETBIT question

From: Daniel Koepke (dkoepke@california.com)
Date: 02/04/97


On Wed, 5 Feb 1997, DJ Pure wrote:

> Me again.
> 
> can someone explain exatly what this does.
> 
> SET_BIT(PRF_FLAGS(d->character), PRF_COLOR_1 | PRF_COLOR_2);
> 
> I know it sets the colour bit to 1 / on / true, but that is a bit vague.
> Can someone run through the ENTIRE line please.

Well, since default circle uses bitvectors, XORing them together
essentially is the same as:

  SET_BIT(PRF_FLAGS(d->character), PRF_COLOR_1);
  SET_BIT(PRF_FLAGS(d->character), PRF_COLOR_2);


--
Daniel Koepke
dkoepke@california.com
Forgive me father, for I am sin.


+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/18/00 PST