| Message |
Has anyone ever run across something like this:
if PCFLAG_PAGERON returns true, anything that uses "send_to_pager()" is displayed first, followed by everything that uses "send_to_char()".
if PCFLAG_PAGERON returns false, anything that uses "send_to_char()" is displayed first, followed by everything that uses "send_to_pager()".
I'm baffled. The only thing 'unique' about my version of color.c is that I condensed send_to_pager_color and colorize together. below is a copy of what the code looks like in send_to_pager_color()... least the part of interest (I think).
if( IS_NPC( ch ) || !IS_SET( ch->pcdata->flags, PCFLAG_PAGERON ) )
{
send_to_char_color( txt, d->character );
return;
}
while( ( colstr = strpbrk( prevstr, "&{}" ) ) != NULL )
{
if( colstr > prevstr )
write_to_pager( ch->desc, prevstr, ( colstr - prevstr ) );
ln = colorcode( colstr, colbuf, ch, FALSE );
if( ln < 0 )
{
prevstr = colstr + 1;
break;
}
else if( ln > 0 )
write_to_pager( ch->desc, colbuf, ln );
prevstr = colstr + 2;
}
if( *prevstr )
write_to_pager( ch->desc, prevstr, 0 );
}
return;
}
Any clues?
-Tz |
Implementer of Lost Prophecy,
Tzaro | top |
|