Bugs in PL 14 - opps

From: Andrey Fidrya (andrey@ALEX-UA.COM)
Date: 07/06/98


I missed some braces in PLR_FLAGGED, MOB_FLAGGED and PRF_FLAGGED and they
weren't working correctly. These are correct ones:

#define MOB_FLAGGED(ch, flag) (IS_NPC(ch) ? IS_SET(MOB_FLAGS(ch), (flag)) : \
                       (log("SYSERR: PC using MOB_FLAGS at %s:%d.", __FILE__,
__LINE__), FALSE))
#define PLR_FLAGGED(ch, flag) (!IS_NPC(ch) ? IS_SET(PLR_FLAGS(ch), (flag)) : \
                       (log("SYSERR: NPC using PLR_FLAGS at %s:%d.", __FILE__,
__LINE__), FALSE))
#define PRF_FLAGGED(ch, flag) (!IS_NPC(ch) ? IS_SET(PRF_FLAGS(ch), (flag)) : \
                         (ch)->desc && (ch)->desc->original ? \
                         IS_SET(PRF_FLAGS((ch)->desc->original), (flag)) : \
                         (log("SYSERR: non-switched NPC using PRF_FLAGS at
%s:%d.", __FILE__, __LINE__), FALSE))

  Andrey (andrey@alex-ua.com)
    aka Zmey // RMUD


     +------------------------------------------------------------+
     | 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