On Mon, 1 Dec 1997, Chuck Reed wrote: > I have been experiencing a lag type crash. The game does not technicaly > "crash" but lags infinitly, thus not allowing me to peer at my debugger > file. I have to bring it down and put it back up manually. It started > doing this once I implemented a haste spell. The code I added is: > > (after normal hit calls for fighting) > if ((IS_AFFECTED(ch, AFF_HASTE)) && (GET_POS(ch) == POS_FIGHTING)) { > int rand_num; > > rand_num = number(1,100); > rand_num += (GET_LEVEL(ch) / 2); > if(rand_num > 65) > hit(ch, FIGHTING(ch), TYPE_UNDEFINED); > } > > Any clues to why this would be happening? at a glance it looks like you have the attacker easily succeeding at the haste, and I'd venture to guess the haste check is in hit(), thus your infinite loop. Brazil +------------------------------------------------------------+ | 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