diff options
| author | Cerapter <cerap@protonmail.com> | 2018-07-28 14:41:42 +0200 |
|---|---|---|
| committer | Cerapter <cerap@protonmail.com> | 2018-07-28 14:41:42 +0200 |
| commit | c1807e0888c5851ab4fc2b419ec892a601792179 (patch) | |
| tree | 959685cc5b03fec79b7f247e04b91ee27f3d2058 | |
| parent | 1b70d4d6dbc5090fde105ade1db57ed668d5e520 (diff) | |
Max OOC name limited, unnecessary variable removed.
| -rw-r--r-- | courtroom.cpp | 1 | ||||
| -rw-r--r-- | courtroom.h | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/courtroom.cpp b/courtroom.cpp index 55a17846..70e3f662 100644 --- a/courtroom.cpp +++ b/courtroom.cpp @@ -111,6 +111,7 @@ Courtroom::Courtroom(AOApplication *p_ao_app) : QMainWindow() ui_ooc_chat_name = new QLineEdit(this); ui_ooc_chat_name->setFrame(false); ui_ooc_chat_name->setPlaceholderText("Name"); + ui_ooc_chat_name->setMaxLength(30); ui_ooc_chat_name->setText(p_ao_app->get_default_username()); diff --git a/courtroom.h b/courtroom.h index 590de3d0..4569156c 100644 --- a/courtroom.h +++ b/courtroom.h @@ -164,8 +164,6 @@ private: // A stack of inline colours. std::stack<INLINE_COLOURS> inline_colour_stack; - bool centre_text = false; - bool next_character_is_not_special = false; // If true, write the // next character as it is. |
