mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Masterserver: report gameid, uptime, cosmetic fixes on server web page
This commit is contained in:
@@ -1243,7 +1243,7 @@ void Server::AsyncRunStep()
|
||||
float &counter = m_masterserver_timer;
|
||||
if((!counter || counter >= 300.0) && g_settings->getBool("server_announce") == true)
|
||||
{
|
||||
ServerList::sendAnnounce(!counter ? "start" : "update", m_clients_number);
|
||||
ServerList::sendAnnounce(!counter ? "start" : "update", m_clients_number, m_uptime.get(), m_gamespec.id);
|
||||
counter = 0.01;
|
||||
}
|
||||
counter += dtime;
|
||||
|
Reference in New Issue
Block a user