Re: bpl15 CVS bug?

From: George (greerga@CIRCLEMUD.ORG)
Date: 09/20/98


On Sun, 20 Sep 1998, Tony Robbins [Kupek] wrote:

>Ok, on a hunch I decided to see if stat file <character> would work.
>
>Here's what I got in the log:
>Sep 20 11:38:02 :: SYSERR: Mob (null) (#-1) had player_specials allocated!

Yup, side-effects of the IS_NPC changes.  They were accidently put in
anyway. :)

diff -u -p -r1.21 utils.h
--- utils.h     1998/09/01 02:19:04     1.21
+++ utils.h     1998/09/20 23:41:01
@@ -192,7 +192,8 @@ void        update_pos(struct char_data *victim
 #define AFF_FLAGS(ch) ((ch)->char_specials.saved.affected_by)
 #define ROOM_FLAGS(loc) (world[(loc)].room_flags)

-#define IS_NPC(ch)  (GET_PFILEPOS(ch) == -1)
+#define IS_NPC(ch)     (IS_SET(MOB_FLAGS(ch), MOB_ISNPC))
+/* #define IS_NPC(ch)  (GET_PFILEPOS(ch) == -1)        Not yet. */
 #define IS_MOB(ch)  (IS_NPC(ch) && GET_MOB_RNUM(ch) >= 0)

 #define MOB_FLAGGED(ch, flag) (IS_NPC(ch) && IS_SET(MOB_FLAGS(ch), (flag)))

I'll work on that more next patchlevel if people are interested in
reclaiming a MOB_ and PLR_ flag.

--
George Greer, greerga@circlemud.org | Genius may have its limitations, but
http://mouse.van.ml.org/   (mostly) | stupidity is not thus handicapped.
http://www.van.ml.org/CircleMUD/    |                  -- Elbert Hubbard


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