summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-12-14 15:00:43 +0000
committerrubidium <rubidium@openttd.org>2010-12-14 15:00:43 +0000
commitb149fcd1271405844bd15e353a25657cbed85be3 (patch)
tree14892b5b421b5db45d0006fd6325b4836cb12ac9 /src/network
parente68efb9e719a028f14da9965d4e3795252b2cbad (diff)
downloadopenttd-b149fcd1271405844bd15e353a25657cbed85be3.tar.xz
(svn r21513) -Feature [FS#532]: make the chat message timeout user configurable
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp
index 4e3fb53b4..510d92a82 100644
--- a/src/network/network.cpp
+++ b/src/network/network.cpp
@@ -165,8 +165,6 @@ bool NetworkCompanyIsPassworded(CompanyID company_id)
* If 'self_send' is true, this is the client who is sending the message */
void NetworkTextMessage(NetworkAction action, ConsoleColour colour, bool self_send, const char *name, const char *str, int64 data)
{
- const int duration = 20; // Seconds the messages stay visible
-
StringID strid;
switch (action) {
case NETWORK_ACTION_SERVER_MESSAGE:
@@ -212,7 +210,7 @@ void NetworkTextMessage(NetworkAction action, ConsoleColour colour, bool self_se
DEBUG(desync, 1, "msg: %08x; %02x; %s", _date, _date_fract, message);
IConsolePrintF(colour, "%s", message);
- NetworkAddChatMessage((TextColour)colour, duration, "%s", message);
+ NetworkAddChatMessage((TextColour)colour, _settings_client.gui.network_chat_timeout, "%s", message);
}
/* Calculate the frame-lag of a client */