Re: [NEWBIE] [CODE] Problem..

From: Thomas Arp (t_arp@stofanet.dk)
Date: 01/05/03


From: "John A. Hines" <sculpy@TIEDYE.ORG>
> int invalid_align(struct char_data *ch, struct obj_data *obj)
> {
>   if ((OBJ_FLAGGED(obj, ITEM_ANTI_EVIL) && IS_EVIL(ch)) ||
>        (OBJ_FLAGGED(obj, ITEM_ANTI_GOOD) && IS_GOOD(ch)) ||
>        (OBJ_FLAGGED(obj, ITEM_ANTI_NEUTRAL) && IS_NEUTRAL(ch)) ||
>        invalid_class(ch, obj) || invalid_race(ch, obj))
>         return FALSE;            /*invalid_race is only change I made */
> **** wheres the else?
>         return TRUE;
>
Not important. However, here's the invalid_race call I was asking for.
Find the invalid_race function and put in some log calls to see if it
does as it's supposed to. Then get back to us.

Welcor

--
   +---------------------------------------------------------------+
   | 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/26/03 PDT