mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
fixed crack animation timing in client
This commit is contained in:
parent
03d67af9e8
commit
a55850e4dc
4 changed files with 27 additions and 4 deletions
|
@ -251,6 +251,15 @@ public:
|
|||
v3s16 blockpos = ((ClientMap&)m_env.getMap()).clearTempMod(p);
|
||||
m_env.getMap().updateMeshes(blockpos, m_env.getDayNightRatio());
|
||||
}
|
||||
|
||||
float getAvgRtt()
|
||||
{
|
||||
JMutexAutoLock lock(m_con_mutex);
|
||||
con::Peer *peer = m_con.GetPeerNoEx(PEER_ID_SERVER);
|
||||
if(peer == NULL)
|
||||
return 0.0;
|
||||
return peer->avg_rtt;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue