diff options
author | rubidium <rubidium@openttd.org> | 2009-02-11 01:28:10 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-02-11 01:28:10 +0000 |
commit | dba12992e850db9b5c08f5379910c51d33ede644 (patch) | |
tree | fae4757ac8f278cbdd66def2e242220d0f8c38b5 /src | |
parent | 8d252020672d44b8708128e5bcafb015897e3a15 (diff) | |
download | openttd-dba12992e850db9b5c08f5379910c51d33ede644.tar.xz |
(svn r15442) -Codechange: don't do magic on magic numbers when you can also use a single named constant.
Diffstat (limited to 'src')
-rw-r--r-- | src/network/network_chat_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_chat_gui.cpp b/src/network/network_chat_gui.cpp index f38b4a04d..a308fc934 100644 --- a/src/network/network_chat_gui.cpp +++ b/src/network/network_chat_gui.cpp @@ -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 |