| 45 | } |
| 46 | |
| 47 | void CTextContainer::DrawSystemChat(int x, int y, int height) |
| 48 | { |
| 49 | int offset = (y + height) - 41; |
| 50 | |
| 51 | CTextData *td = (CTextData *)g_SystemChat.Last(); |
| 52 | |
| 53 | while (td != nullptr && offset >= y) |
| 54 | { |
| 55 | auto &tth = td->m_TextSprite; |
| 56 | |
| 57 | offset -= tth.Height; |
| 58 | |
| 59 | if (td->Timer >= g_Ticks) |
| 60 | { |
| 61 | tth.Draw(x, offset); |
| 62 | } |
| 63 | |
| 64 | td = (CTextData *)td->m_Prev; |
| 65 | } |
| 66 | } |