Re: Could someone else please test this...

From: Angus Mezick (angus@EDGIL.CCMAIL.COMPUSERVE.COM)
Date: 04/16/98

Well, that sure is embarassing, esp since the call to mud_time_passed() in age()
is made right after mud_time_passed() is defined.  ARGH!  musta seen the utils.c
in my grep and ignored it, sigh.

ok.... just because i am a bonehead:
OBCircle: Zone flags are god.  Go use that bitvector in the zone_data structure
for all it's worth.  I added a Z_NO_SUMMON, Z_NO_RECALL, and a Z_NO_TELEPORT
(very nice to keep those teleporting mortals out.

______________________________ Forward Header __________________________________
Subject: Re:  Could someone else please test this...
Date:    4/15/98 6:21 PM

On Wed, 15 Apr 1998, Angus Mezick wrote:

->put a log("%ld %ld %ld",(long)t1, long(t2), secs);
->into your utils.c:mud_time_passed() function right after secs=t2-t1;
->For some reason this function gets called ALOT!
->about every 76-100 seconds 3 times in a row.

Why is that so surprising?  Perhaps you should read the <cough> code?
mud_time_passsed() is called in the age() function.  The age() function
is called in mana_gain(), hit_gain(), and move_gain(). mana_gain(),
hit_gain(), and move_gain() are all called in point_update() which in
turn is called every SECS_PER_MUD_HOUR seconds from heartbeat().  It
took five to ten times longer to write this message than to find that


     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

This archive was generated by hypermail 2b30 : 12/15/00 PST