Re: Bug Alert - page_string

From: George (greerga@CIRCLEMUD.ORG)
Date: 11/03/98


On Fri, 30 Oct 1998, Angus Mezick wrote:

>If you page the background story of the mud,
>d->character->char_specials.screensize will be undefined and
>cause the mud to go into an infinite loop randomly. I put in
>the following:
>if(!d->character)
>     screensize=23;
>else if(d->original)
>     screensize=d->original->char_specials.screensize -2;
>else
>     screensize=d->character->char_specials.screensize -2;
>screensize=MAX(13,MIN(screensize,120));
>
>I don't know if you have the screensize, just something
>to be careful of.

Hard-coded in stock code:

#define PAGE_LENGTH     22
#define PAGE_WIDTH      80

Good reminder for others though.

--
George Greer, greerga@circlemud.org | Genius may have its limitations, but
http://mouse.van.ml.org/   (mostly) | stupidity is not thus handicapped.
http://www.van.ml.org/CircleMUD/    |                  -- Elbert Hubbard


     +------------------------------------------------------------+
     | 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