1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-06 17:41:04 +00:00

Improve readability and infos in verbose log (#13828)

This commit is contained in:
sfan5 2023-09-22 18:41:10 +02:00 committed by GitHub
parent 5949172735
commit c3114132d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 26 additions and 51 deletions

View file

@ -357,7 +357,6 @@ bool GenericCAO::collideWithObjects() const
void GenericCAO::initialize(const std::string &data)
{
infostream<<"GenericCAO: Got init data"<<std::endl;
processInitData(data);
m_enable_shaders = g_settings->getBool("enable_shaders");
@ -393,8 +392,7 @@ void GenericCAO::processInitData(const std::string &data)
}
const u8 num_messages = readU8(is);
for (int i = 0; i < num_messages; i++) {
for (u8 i = 0; i < num_messages; i++) {
std::string message = deSerializeString32(is);
processMessage(message);
}
@ -1704,8 +1702,6 @@ void GenericCAO::processMessage(const std::string &data)
if (expire_visuals) {
expireVisuals();
} else {
infostream << "GenericCAO: properties updated but expiring visuals"
<< " not necessary" << std::endl;
if (textures_changed) {
// don't update while punch texture modifier is active
if (m_reset_textures_timer < 0)