Re: magic.c and saving throws

From: James Rutledge (
Date: 07/12/96

When coding in general, and especially with a mud that you are pretty
much in charge of maintaining, always err on the side of safety.  Better
to add those in and make it fully compatible than suffer the consequences
later.  Incidentally, it will run fine until it tries to access a value
greater than the structure.  Then you will get some arbitrary result that
could have a good chance of crashing the code.


On Wed, 10 Jul 1996, Bill Romano wrote:

> First of all, thanks to all who have helped me so far with the newbie ?'s
> i have posted *8).
> Second .. here is another one...
> I am adding classes to bpl 11, and am following class.doc.  now we have
> races properly imped and 200 levels so it is a bit question is
> this.  The savings throws in magic.c havent been updated yet, but it has
> not yet crashed the mud, we have some playtesting done, so i know this
> should have been checked, not being very c literate, i would assume if it
> tries to find an array value outside the limit it would crash the mud.
> Are these values still used?  i.e. do i need to update them to our 200
> level system for any reason other than "doing the right thing"
> - Ghost Shaidan
> aka Bill

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