Re: [CODE]

From: Aaron Throckmorton (throck@NFINITY.COM)
Date: 09/25/98


This is going to sound strange... but I had this problem too.

What it came down to I think was the position that I put my race
variable into my player struct.  So in struct char_player_data (in
structs.h) move the "byte race" to the end of the struct.  Voila... no
more problem.  Hopefully.
Let me know if it works or not.

throck

Tim Brophy wrote:
>
> I can't seem to find the damn missing ')' before the '->'.  At least
> thats what my compiler tells me the error is in utils.h.
>
> Anybody have a clue....i narrowed it down to this area of the file.
>
> #define CLASS_ABBR(ch) (IS_NPC(ch) ? "--" :
> class_abbrevs[(int)GET_CLASS(ch)])
>
> #define IS_MAGIC_USER(ch)       (!IS_NPC(ch) && \
>                                 (GET_CLASS(ch) == CLASS_MAGIC_USER))
> #define IS_CLERIC(ch)           (!IS_NPC(ch) && \
>                                 (GET_CLASS(ch) == CLASS_CLERIC))
> #define IS_THIEF(ch)            (!IS_NPC(ch) && \
>                                 (GET_CLASS(ch) == CLASS_THIEF))
> #define IS_WARRIOR(ch)          (!IS_NPC(ch) && \
>                                 (GET_CLASS(ch) == CLASS_WARRIOR))
> #define IS_HUMAN(ch)            (!IS_NPC(ch) && \
>                                 (GET_RACE(ch) == RACE_HUMAN))
>
> #define IS_ELF(ch)              (!IS_NPC(ch) && \
>                                 (GET_RACE(ch) == RACE_ELF))
>
> #define IS_HOBBIT(ch)            (!IS_NPC(ch) && \
>                                 (GET_RACE(ch) == RACE_HOBBIT))
>
> #define IS_FAIRIE(ch)            (!IS_NPC(ch) && \
>                                 (GET_RACE(ch) == RACE_FAIRIE))
>
> #define OUTSIDE(ch) (!ROOM_FLAGGED((ch)->in_room, ROOM_INDOORS))
>
>      +------------------------------------------------------------+
>      | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>      | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
>      +------------------------------------------------------------+


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



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