mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Fix invisible chat error messages (#7289)
This commit is contained in:
		
				
					committed by
					
						
						SmallJoker
					
				
			
			
				
	
			
			
			
						parent
						
							55bb1938c1
						
					
				
				
					commit
					24b6bd0f67
				
			@@ -2761,8 +2761,8 @@ void Game::updateChat(f32 dtime, const v2u32 &screensize)
 | 
			
		||||
	while (!chat_log_error_buf.empty()) {
 | 
			
		||||
		std::wstring error_message = utf8_to_wide(chat_log_error_buf.get());
 | 
			
		||||
		if (!g_settings->getBool("disable_escape_sequences")) {
 | 
			
		||||
			error_message = L"\x1b(c@red)";
 | 
			
		||||
			error_message.append(error_message).append(L"\x1b(c@white)");
 | 
			
		||||
			error_message.insert(0, L"\x1b(c@red)");
 | 
			
		||||
			error_message.append(L"\x1b(c@white)");
 | 
			
		||||
		}
 | 
			
		||||
		chat_backend->addMessage(L"", error_message);
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user