Re: [Code] Room Flags

From: Daniel Koepke (dkoepke@california.com)
Date: 12/15/96


On Fri, 13 Dec 1996, JTRhone wrote:

> > *grin*  Stumped again!  Fancy that...:)
> > Uhm...so I increased the room flags in structs.h from an int to a long,
> > now I can add more I think!:)  I thought wrong...cuz apparently it
> > doesn't(it being the mud) doesn't like the new flags...doesn't recognize
> 
> On some systems (most pc based I believe), longs are the same length as
> ints, 32 bits.  I supposed you could go double long or some other wacko
> thing, but I decided to add a new bitvector, called it room_flags2 and
> added all the macros associated with it, like ROOM_FLAGGED2(blah, NOSCAN).
> It works fine other than you have to be sure yer checkin the correct bits
> on the correct bitvector.

A somewhat less than portable method would be gcc's "long long" which
will permit 64 flags on any supporting platforms.  Also, there would
be bitfields, too, but that is a much larger project.


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