(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:
pasky 2005-03-26 04:02:50 +00:00
parent 7340aa5b8e
commit d4b3469e2f
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}