From 6063b4c14dd26b84c91a8e8d62f3921b4789a80a Mon Sep 17 00:00:00 2001 From: oy Date: Thu, 16 Dec 2010 02:31:12 +0100 Subject: added auto completion of nicknames and highlighted nicknames in chat. Closes #218 --- src/game/client/lineinput.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/game/client/lineinput.h') diff --git a/src/game/client/lineinput.h b/src/game/client/lineinput.h index 83614a2e..5dfc3e48 100644 --- a/src/game/client/lineinput.h +++ b/src/game/client/lineinput.h @@ -28,6 +28,7 @@ public: const char *GetString() const { return m_Str; } int GetLength() const { return m_Len; } int GetCursorOffset() const { return m_CursorPos; } + void SetCursorOffset(int Offset) { m_CursorPos = Offset > m_Len ? m_Len : Offset < 0 ? 0 : Offset; } }; #endif -- cgit 1.4.1