Re: [NEWBIE][CODE] magic leaf

From: Mike Breuer (mbreuer@new.rr.com)
Date: 01/09/02


> > #define ITEM_MAGIC_FOOD   (1 << 17) /* Food gives extra energy */
>
> In what file would this go?

structs.h, but as a general comment, I would strongly suggest
familiarizing yourself with the code base before attempting to patch in
any code, especially Mailer(tm) code.  For example, if you don't
understand that you need to use the next available unique bit for the
obj_flags.extra_flags when defining the above constant, you could end up
with unexpected behavior.  Just to be clear, don't use (1 << 17) unless
17 happens to be the next unique bit number in the list of Extra object
flags in structs.h.

Mike

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



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