Re: [Code] Why is this happening?

From: Daniel Koepke (dkoepke@california.com)
Date: 01/21/97


On Tue, 21 Jan 1997, Finality Admin. wrote:

> 	My problem was with the double and triple skills I added. I don't
> know much about gdb but I discovered backtrace and that helped me figure
> out problem was in perform_violence, not hit. 

I already wrote a crash-free patch for having double/triple hits, which
is availible at the ftp site.  But, if you must do it yourself, you need
to check to make sure the player wasn't killed in the last hit.  This
is easily done by:

  if (FIGHTING(ch)) {
    // then hit #2
  }

  if (FIGHTING(ch)) {
    // hit #3
  }

Whatever...


--
Daniel Koepke
dkoepke@california.com
Forgive me father, for I am sin.


+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



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