From 85ceb708f755aeacc6721dcaab2f791b60ccc04b Mon Sep 17 00:00:00 2001 From: Cerapter Date: Wed, 29 Aug 2018 16:20:47 +0200 Subject: [PATCH] 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. --- text_file_functions.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/text_file_functions.cpp b/text_file_functions.cpp index 175339d..50e7af2 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;