diff options
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 |