1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add server/client annotations to settingtypes.txt and make use of them (#15756)

This commit is contained in:
grorp 2025-04-01 07:55:47 -04:00 committed by GitHub
parent 6724068659
commit c30c94dfaa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 231 additions and 96 deletions

View file

@ -367,8 +367,7 @@ Client::~Client()
g_fontengine->clearMediaFonts();
}
void Client::connect(const Address &address, const std::string &address_name,
bool is_local_server)
void Client::connect(const Address &address, const std::string &address_name)
{
if (m_con) {
// can't do this if the connection has entered auth phase
@ -389,7 +388,7 @@ void Client::connect(const Address &address, const std::string &address_name,
m_con->Connect(address);
initLocalMapSaving(address, m_address_name, is_local_server);
initLocalMapSaving(address, m_address_name);
}
void Client::step(float dtime)
@ -917,11 +916,9 @@ void Client::request_media(const std::vector<std::string> &file_requests)
<< pkt.getSize() << ")" << std::endl;
}
void Client::initLocalMapSaving(const Address &address,
const std::string &hostname,
bool is_local_server)
void Client::initLocalMapSaving(const Address &address, const std::string &hostname)
{
if (!g_settings->getBool("enable_local_map_saving") || is_local_server) {
if (!g_settings->getBool("enable_local_map_saving") || m_internal_server) {
return;
}
if (m_localdb) {