Re[2]: Mob fleeing

From: Angus Mezick (angus@EDGIL.CCMAIL.COMPUSERVE.COM)
Date: 10/29/97


I fully agree.  is desc->wait uses anywhere a connection might not yet have a
char_data?  if so, this would have to in some way be fixed.  if not, YAY!!
--Angus

______________________________ Reply Separator _________________________________
Subject: Re:  Mob fleeing
Author:  INTERNET:CIRCLE@post.queensu.ca at CSERVE
Date:    10/28/97 10:06 PM

>#define CHECK_WAIT(ch)  ((!IS_NPC(ch))? \
>                           (((ch)->desc) ? ((ch)->desc->wait > 1) : 0 ):\
>                           (GET_MOB_WAIT(ch)>0))
>
>I know it looks nasty and icky, but do you see anything wrong but a bad code
>style?

I think it's glossing over the real problem at hand.  There shouldn't be
two versions of the same variable for mobs and pcs.


     +------------------------------------------------------------+
     | 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/08/00 PST