Improve readability

This commit is contained in:
FutureRave 2022-03-23 15:26:33 +00:00
parent 92bd54aed7
commit 16c7e3a9ed
No known key found for this signature in database
GPG Key ID: E883E2BC9657D955

View File

@ -48,9 +48,9 @@ namespace dedicated_info
}
}
std::string cleaned_hostname(sv_hostname->current.string);
std::string cleaned_hostname = sv_hostname->current.string;
utils::string::strip(cleaned_hostname.data(), cleaned_hostname.data(),
utils::string::strip(sv_hostname->current.string, cleaned_hostname.data(),
cleaned_hostname.size() + 1);
console::set_title(utils::string::va("%s on %s [%d/%d] (%d)", cleaned_hostname.data(),