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

Scripting WIP

This commit is contained in:
Perttu Ahola 2011-11-12 13:59:56 +02:00
parent 23adfff4fe
commit 38944467d3
9 changed files with 59 additions and 29 deletions

View file

@ -1153,9 +1153,9 @@ void ServerEnvironment::step(float dtime)
// This helps the objects to send data at the same time
bool send_recommended = false;
m_send_recommended_timer += dtime;
if(m_send_recommended_timer > 0.10)
if(m_send_recommended_timer > getSendRecommendedInterval())
{
m_send_recommended_timer = 0;
m_send_recommended_timer -= getSendRecommendedInterval();
send_recommended = true;
}