diff options
| author | Cerapter <cerap@protonmail.com> | 2018-08-29 16:20:47 +0200 |
|---|---|---|
| committer | Cerapter <cerap@protonmail.com> | 2018-08-29 16:20:47 +0200 |
| commit | 85ceb708f755aeacc6721dcaab2f791b60ccc04b (patch) | |
| tree | 74813d09d1f0b7d50cfc66fe8bcb14cb247362a6 | |
| parent | 57fd4b9b9dcf81fb2d607ef11495acf11906fe01 (diff) | |
Added the ability to have a character not have a showname at all on clientside.
It can be done by adding `needs_showname = false` into the character's
`char.ini` file.
| -rw-r--r-- | text_file_functions.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/text_file_functions.cpp b/text_file_functions.cpp index 175339d4..50e7af2a 100644 --- a/text_file_functions.cpp +++ b/text_file_functions.cpp @@ -409,7 +409,10 @@ QString AOApplication::get_char_name(QString p_char) QString AOApplication::get_showname(QString p_char) { QString f_result = read_char_ini(p_char, "showname", "[Options]", "[Time]"); + QString f_needed = read_char_ini(p_char, "needs_showname", "[Options]", "[Time]"); + if (f_needed.startsWith("false")) + return ""; if (f_result == "") return p_char; else return f_result; |
