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.
This commit is contained in:
		
							parent
							
								
									57fd4b9b9d
								
							
						
					
					
						commit
						85ceb708f7
					
				@ -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;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user