Re[2]: Re[2]: Mob fleeing

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


damn, guess that should be changed and not worked around. another patch george?
or is there a reason not to check the mobs wait state if the char is a mob?
bother, why the &#!! was wait stuck onto the desc? timing out during load?
argh.
--Angus

______________________________ Reply Separator _________________________________
Subject: Re:  Re[2]:  Mob fleeing
Author:  INTERNET:CIRCLE@post.queensu.ca at CSERVE
Date:    10/27/97 11:50 PM

>check out the CHECK_WAIT() macro in utils.h, it will do exactly what you
>want to do here, and will standardize it (you will want to put this in any
>skill func you plan to allow mobs to use.)

>#define CHECK_WAIT(ch)  (((ch)->desc) ? ((ch)->desc->wait > 1) :\
>                         (GET_MOB_WAIT(ch)>0))

The stock one is:
#define CHECK_WAIT(ch)  (((ch)->desc) ? ((ch)->desc->wait > 1) : 0)

Hence the work around.


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