From b149fcd1271405844bd15e353a25657cbed85be3 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 14 Dec 2010 15:00:43 +0000 Subject: (svn r21513) -Feature [FS#532]: make the chat message timeout user configurable --- src/network/network.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/network/network.cpp') 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 */ -- cgit v1.2.3-70-g09d2