Hi all, If any of you have used the align variable in pl2 of the dg scripts patch you may have noticed its non-functionality with -ve numbers. Quite a problem really! Anyway here is Georges fix for negative numbers used in the relevant part of dg_script.c /* returns 1 if string is all digits, else 0 */ int is_num(char *num) { if (*num == '-') /* -'s in front are valid. Thanks George, YET AGAIN*/ num++; while (*num && isdigit(*num)) num++; if (!*num || isspace(*num)) return 1; else return 0; } Now you'll fire on "< -350" etc. ... Andy telnet://winnt.cmht.le.ac.uk:4000 +------------------------------------------------------------+ | 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/15/00 PST