Here are the two functions containing the two error lines:

/*
 * Send a page to one char.
 */
void page_to_char( const char *txt, CHAR_DATA *ch )
{
    if ( txt == NULL || ch->desc == NULL)
    return;

    if (ch->lines == 0 )
    {
    send_to_char(txt,ch);
    return;
    }
    
#if defined(macintosh)
    send_to_char(txt,ch);
#else
    ch->desc->showstr_head = alloc_mem(strlen(txt) + 1);
    strcpy(ch->desc->showstr_head,txt);
    ch->desc->showstr_point = ch->desc->showstr_head;
    show_string(ch->desc,"");
#endif
}

/*
 * Page to one char, new colour version, by Lope.
 */
void page_to_char( const char *txt, CHAR_DATA *ch )
{
    const   char    *point;
            char    *point2;
            char    buf[ MAX_STRING_LENGTH * 4 ];
        int skip = 0;

#if defined(macintosh)
    send_to_char( txt, ch );
#else
    buf[0] = '\0';
    point2 = buf;
    if( txt && ch->desc )
    {
        if( IS_SET( ch->act, PLR_COLOUR ) )
        {
        for( point = txt ; *point ; point++ )
            {
            if( *point == '{' )
            {
            point++;
            skip = colour( *point, ch, point2 );
            while( skip-- > 0 )
                ++point2;
            continue;
            }
            *point2 = *point;
            *++point2 = '\0';
        }           
        *point2 = '\0';
        ch->desc->showstr_head  = alloc_mem( strlen( buf ) + 1 );
        strcpy( ch->desc->showstr_head, buf );
        ch->desc->showstr_point = ch->desc->showstr_head;
        show_string( ch->desc, "" );
        }
        else
        {
        for( point = txt ; *point ; point++ )
            {
            if( *point == '{' )
            {
            point++;
            continue;
            }
            *point2 = *point;
            *++point2 = '\0';
        }
        *point2 = '\0';
        ch->desc->showstr_head  = alloc_mem( strlen( buf ) + 1 );
        strcpy( ch->desc->showstr_head, buf );
        ch->desc->showstr_point = ch->desc->showstr_head;
        show_string( ch->desc, "" );
        }
    }
#endif
    return;
}


So, it looks to me like they are both functions doing the same thing?  But I 
can't take either out without screwing things up even more.  Right now I am 
working without this code actually put in, until I can figure out how to fix 
it.  So, any ideas would be very much appreciated.  Thanks all!

Kris

__________________________________________________________________
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp

Reply via email to