Re: [NEWBIE] Circle Score Bug

From: Corey Biles (cbiles@sprynet.com)
Date: 11/13/00


Patrick Dughi wrote:

> >   Basically, the buffer behaves differently for score than for other
> > commands...when i type it, it will display the last line of text shown
> > as the first line of the score sheet, be it mob name/desc, room text,
> > etc.  If I hit score a second or multiple times, it will cumulatively
> > add score sheets (so the second time, i get 2 more score sheets for a
> > total of three, etc...to the point that the mud crashes).
>
>         Okay. First, this isn't a stock bug.  It's your bug.  You made it.

Ummm. Maybe not. It's not a stock bug, but...
I had problems with this as well. Took me a bit to remember what was the
culprit. If you download the circle30bp17RS-win98.zip from
ftp://ftp.circlemud.org/pub/jelson/CircleMUD/contrib/win98/ you will
find in act.informative.c, under ACMD(do_score), a line that reads:
sprintf(buf + strlen(buf), "You are a %d year old %d.", GET_AGE(ch) ,
GET_RACE(ch));

Needless to say, it's wrong. Personally, I changed it back to stock.  ie:
sprintf(buf, "You are %d years old.", GET_AGE(ch));

That took care of the race problem and the buffer "bug".

Hope this helps,
Corey Biles


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 04/11/01 PDT