1
0
Fork 0
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:
Perttu Ahola 2010-12-23 12:10:46 +02:00
parent 03d67af9e8
commit a55850e4dc
4 changed files with 27 additions and 4 deletions

View file

@ -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: