Re: [CODE] Setting alignment upon start

From: Mike Stilson (mstilson@home.com)
Date: 03/19/01


On Mon, Mar 19, 2001 at 02:21:31PM -0600, flawed wrote:

== snip parse_ethos command ==

You can always try this (utils.h defines GET_ALIGN I think.)

#define GET_ALIGNMENT(ch) CHECK_GET_ALIGNMENT(ch,var)
#define CHECK_GET_ALIGNMENT(ch) \
        (*(log("GET_ALIGNMENT: ch %s, align %d, where (%s)%s:%d", \
        GET_NAME(ch), ch->player_specials.saved.alignment, __FILE__, \
        __FUNCTION__, __LINE__), &var)))

This'll put something in your logfile like:
GET_ALIGNMENT: ch JoePlayer, align 1000, where (db.c)load_char:2627

Just a matter then of finding out what happens between when it's
what you want and when it's not.

(I think I have the right number of ()'s in there, just got done with
work and still not thinking 100% right)

-mike

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/04/01 PST