(svn r15442) -Codechange: don't do magic on magic numbers when you can also use a single named constant.
This commit is contained in:
		@@ -96,7 +96,7 @@ void CDECL NetworkAddChatMessage(TextColour colour, uint8 duration, const char *
 | 
			
		||||
 | 
			
		||||
		/* The default colour for a message is company colour. Replace this with
 | 
			
		||||
		 * white for any additional lines */
 | 
			
		||||
		cmsg->colour = (bufp == buf && colour & IS_PALETTE_COLOUR) ? colour : (TextColour)(0x1D - 15) | IS_PALETTE_COLOUR;
 | 
			
		||||
		cmsg->colour = (bufp == buf && colour & IS_PALETTE_COLOUR) ? colour : TC_WHITE;
 | 
			
		||||
		cmsg->end_date = _date + duration;
 | 
			
		||||
 | 
			
		||||
		bufp += strlen(bufp) + 1; // jump to 'next line' in the formatted string
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user