mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Masterserver: report gameid, uptime, cosmetic fixes on server web page
This commit is contained in:
parent
df49b93877
commit
16c11eb4a3
5 changed files with 29 additions and 21 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue