diff options
author | pasky <pasky@openttd.org> | 2005-03-26 04:02:50 +0000 |
---|---|---|
committer | pasky <pasky@openttd.org> | 2005-03-26 04:02:50 +0000 |
commit | 18fc684977f42819af41450100de838cb03e4b42 (patch) | |
tree | bf8d449aaf1e7e41b119615b5f8368ca90cdba0d /texteff.c | |
parent | 53f87add3a321f6050cbc0372c9bab0365a000b9 (diff) | |
download | openttd-18fc684977f42819af41450100de838cb03e4b42.tar.xz |
(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-.
Diffstat (limited to 'texteff.c')
-rw-r--r-- | texteff.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |