>I'm working with bpl7 on Circle 3, and I have noticed that the >spells that have multiple affects (curse, bless, etc) don't seem to >be working quite right. Yes, I fixed that in our copy and mailed it to to jelson@jhu.edu ! handler.c: void affect_join(struct char_data * ch, struct affected_type * af, bool add_dur, bool avg_dur, bool add_mod, bool avg_mod) { struct affected_type *hjp; bool found = FALSE; for (hjp = ch->affected; !found && hjp; hjp = hjp->next) { if (hjp->type == af->type && hjp->location == af->location) { /* FIX: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ */ if (add_dur) af->duration += hjp->duration; if (avg_dur) af->duration >>= 1; if (add_mod) af->modifier += hjp->modifier; if (avg_mod) af->modifier >>= 1; affect_remove(ch, hjp); affect_to_char(ch, af); found = TRUE; } } if (!found) affect_to_char(ch, af); } cat. -- _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/_/ _/_/ _/_/ Thomas Katzlberger _/_/ _/_/ katzlbt@vuse.vanderbilt.edu _/_/ _/_/ @aBlackNeXT.called.garfield _/_/ _/_/ http://www.vuse.vanderbilt.edu/~katzlbt/ _/_/ _/_/ _/_/ _/_/ "You can tune a file system, but you can't tune a fish." _/_/ _/_/ UNIX man page for tunefs. _/_/ _/_/ _/_/ _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
This archive was generated by hypermail 2b30 : 12/07/00 PST