Re: Re[2]: Mob fleeing

From: George (greerga@DRAGON.HAM.MUOHIO.EDU)
Date: 10/27/97


On Mon, 27 Oct 1997, Angus Mezick wrote:

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

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- 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/08/00 PST