I'm a newbie coder and have been doing fairly well with one exception. I am having a hard time adding fields to the pfiles. Whenever I modify save.c to add a field (and add it in merc.h as well). It compiles fine.. but upon reboot, a number of various results ensue....
The most common of which is the age field gets altered significantly I've also had it where immortal permissions are disallowed and players exp and tnl are affected as well. (fortunately only on the code port). Any suggestions as to why I can not seem to be able to add a field without problems? Thanks for any help/guidance you can offer! -Mike -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Sunday, November 18, 2001 11:20 AM To: [email protected] Subject: URANGE macro..? Hello list, I currently try to write a new codebase, which features some of merc/rom's algorithms, dicerolls, internal rules, etc. in another programming language. So, I have a code question about merc/rom's URANGE macro: #define URANGE(a, b, c) ((b) < (a) ? (a) : ((b) > (c) ? (c) : (b))) If I'm not wrong, URANGE can be re-written like this (if not, please correct me): if (b < a) return a else if (b > c) return c else return b endif endif I see that this function gets called by various functions, mainly to generate a chance-value, but what is it actually supposed to do? What effect is it supposed to generate? And how could I generate a similar chance (or what ever) instead of using this function ... ? TIA, Ernst Rohlicek jun. [ [EMAIL PROTECTED] ] ---------------------------------------------------------------- Versendet durch Jet2Web Internet - Webmail (webmail.jet2web.net) -- ROM mailing list [email protected] http://www.rom.org/cgi-bin/mailman/listinfo/rom _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com

