summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-02-11 01:28:10 +0000
committerrubidium <rubidium@openttd.org>2009-02-11 01:28:10 +0000
commitdba12992e850db9b5c08f5379910c51d33ede644 (patch)
treefae4757ac8f278cbdd66def2e242220d0f8c38b5 /src
parent8d252020672d44b8708128e5bcafb015897e3a15 (diff)
downloadopenttd-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.cpp2
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