mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-22 23:26:34 +00:00
(svn r2073) - Fix: Fixed an apparent oversight in AddTextMessage() which is likely to have caused some messages not expiring from the chatterbox after the given time, as reported by dp-.
This commit is contained in:
parent
7340aa5b8e
commit
d4b3469e2f
@ -83,7 +83,7 @@ void CDECL AddTextMessage(uint16 color, uint8 duration, const char *message, ...
|
||||
memmove(&_text_message_list[0], &_text_message_list[1], sizeof(TextMessage) * (MAX_CHAT_MESSAGES - 1));
|
||||
snprintf(_text_message_list[MAX_CHAT_MESSAGES - 1].message, MAX_TEXTMESSAGE_LENGTH, "%s", buf2);
|
||||
_text_message_list[MAX_CHAT_MESSAGES - 1].color = color;
|
||||
_text_message_list[i].end_date = _date + duration;
|
||||
_text_message_list[MAX_CHAT_MESSAGES - 1].end_date = _date + duration;
|
||||
|
||||
_textmessage_dirty = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user