Re: CODE: Problem making fighting more complex.

From: Pandion-Knight (s337239@student.uq.edu.au)
Date: 05/15/96


On Wed, 15 May 1996, Thomas Pedersen wrote:

> On Wed, 15 May 1996, Crimson wrote:
> 
> > 
> > Ok, i know there is probably a simple solution to this one ...
> > 
> > I have been trying to increase the complexity of the fighting routines 
> > within fight.c, namely perform_voilence and hit.
> > 
> > But whenever i make a change to the routines and run the mud, i get a 
> > segmentation fault at somepoint during the combat.
> > 
> > I am using circle 3 patch 11, on a Sun SparcClassic running Solaris.
> > I was just wondering if anyone else has experienced a similar problem and 
> > if so what they did to solve it.
> > 
> 
> How about some code?  How on earth could anyone possibly know what is
> crashing -your- mud w/o even a snip of code?  
> 

Its never easy without code but one thing I found when I did it is that 
oyu have to constaly check if fighting(ch) exists after each attack - 
because if the opponent dies in the middle of a sequence it will crash 
with a seg fault...

hope this helps

Christopher Voutsis
Email: s337239@student.uq.edu.au



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