mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Default server step to 0.1s and sync object/player update intervals to it
This commit is contained in:
parent
ffad18e424
commit
6b927229f5
8 changed files with 29 additions and 9 deletions
|
@ -205,9 +205,7 @@ public:
|
|||
{ return m_gamedef; }
|
||||
|
||||
float getSendRecommendedInterval()
|
||||
{
|
||||
return 0.10;
|
||||
}
|
||||
{ return m_recommended_send_interval; }
|
||||
|
||||
/*
|
||||
Save players
|
||||
|
@ -367,6 +365,8 @@ private:
|
|||
// A helper variable for incrementing the latter
|
||||
float m_game_time_fraction_counter;
|
||||
core::list<ABMWithState> m_abms;
|
||||
// An interval for generally sending object positions and stuff
|
||||
float m_recommended_send_interval;
|
||||
};
|
||||
|
||||
#ifndef SERVER
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue