1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-28 08:59:09 +00:00

(svn r21513) -Feature [FS#532]: make the chat message timeout user configurable

This commit is contained in:
rubidium
2010-12-14 15:00:43 +00:00
parent e68efb9e71
commit b149fcd127
3 changed files with 3 additions and 3 deletions

View File

@@ -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 */