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

Fix serverlist code style, const-correctness, and types

This commit is contained in:
ShadowNinja 2014-06-20 00:59:39 -04:00
parent b4c2e79ea4
commit 9afeb97fc6
3 changed files with 89 additions and 89 deletions

View file

@ -676,15 +676,15 @@ void Server::AsyncRunStep(bool initial_step)
{
float &counter = m_masterserver_timer;
if(!isSingleplayer() && (!counter || counter >= 300.0) &&
g_settings->getBool("server_announce") == true)
g_settings->getBool("server_announce"))
{
ServerList::sendAnnounce(!counter ? "start" : "update",
m_clients.getPlayerNames(),
m_uptime.get(),
m_env->getGameTime(),
m_lag,
m_gamespec.id,
m_mods);
ServerList::sendAnnounce(counter ? "update" : "start",
m_clients.getPlayerNames(),
m_uptime.get(),
m_env->getGameTime(),
m_lag,
m_gamespec.id,
m_mods);
counter = 0.01;
}
counter += dtime;