mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Remove or restrict some client settings (#15633)
This commit is contained in:
parent
41f7031e49
commit
e5542e5b02
11 changed files with 48 additions and 128 deletions
|
@ -650,9 +650,10 @@ void Server::AsyncRunStep(float dtime, bool initial_step)
|
|||
Send to clients at constant intervals
|
||||
*/
|
||||
|
||||
static const float time_send_interval = 5.0f;
|
||||
m_time_of_day_send_timer -= dtime;
|
||||
if (m_time_of_day_send_timer < 0.0) {
|
||||
m_time_of_day_send_timer = g_settings->getFloat("time_send_interval");
|
||||
if (m_time_of_day_send_timer < 0) {
|
||||
m_time_of_day_send_timer = time_send_interval;
|
||||
u16 time = m_env->getTimeOfDay();
|
||||
float time_speed = g_settings->getFloat("time_speed");
|
||||
SendTimeOfDay(PEER_ID_INEXISTENT, time, time_speed);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue