Re: Easy color for CircleMUD [HELP] [FIX]

From: pi (mud@proimages.proimages.com)
Date: 05/24/96


Here's the fix:

comm.c:

under externs, change
void proc_color(char *inbuf);

To:
void proc_color(char *inbuf, int color);

Under process_output, change

	if(t->character)
		if(clr(t->character, C_NRM))
			proc_color(i);

To

	if(t->character)
		proc_color(i, (clr(t->character, C_NRM)));


And in color.c:

change definition to
void proc_color(char *inbuf, int color)

and after the line
		j+=4

just add
		if(color)


And you're done!  Sorry about that, when I sent it here I had changed a 
few things and the check for color took place in the WRONG place in the 
new version.

So now if you don't have color, it will be processed, with color codes 
\c##, etc., extracted.

-- three point



This archive was generated by hypermail 2b30 : 12/18/00 PST