diff options
| author | oy <Tom_Adams@web.de> | 2010-12-16 02:31:12 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-12-16 02:31:12 +0100 |
| commit | 6063b4c14dd26b84c91a8e8d62f3921b4789a80a (patch) | |
| tree | 2871f293948ee7b4f28745395290e874b8314c7f /src/game/client/lineinput.h | |
| parent | 1d7df01e9a8e4e2bf77caf6e23f0d1eb24529073 (diff) | |
| download | zcatch-6063b4c14dd26b84c91a8e8d62f3921b4789a80a.tar.gz zcatch-6063b4c14dd26b84c91a8e8d62f3921b4789a80a.zip | |
added auto completion of nicknames and highlighted nicknames in chat. Closes #218
Diffstat (limited to 'src/game/client/lineinput.h')
| -rw-r--r-- | src/game/client/lineinput.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 |