Re: zone flag checks

From: Del (
Date: 04/19/02

Scott Meisenholder wrote:
> ok probably having brain fart can someone point out the obvious.
> Zone_flagged (loc, flagged)    (IS_SET(ZONE_FLAGS((loc), FLAGS)))
> zone_flags (loc)               (zone(loc).zone_flags)

I noticed the capitalizations, did you copy/paste this or type this?
Also, you need ZONE_FLAGS to be before ZONE_FLAGGED.

And that looks strangely familiar to something I was messing with a while ago:
#define ZONE_FLAGS(loc)         (world[(loc)].zone_flags)
#define ZONE_FLAGGED(loc, flag) (IS_SET(ZONE_FLAGS(loc), (flag)))

   | FAQ: |
   | Archives: |
   | Newbie List:   |

This archive was generated by hypermail 2b30 : 06/25/03 PDT