1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-14 00:55:20 +02:00

Server: Improve some log messages (#9820)

This commit is contained in:
sfan5
2020-05-05 17:05:11 +02:00
committed by GitHub
parent f34c62c47f
commit d1c6cc72cc
2 changed files with 10 additions and 12 deletions

View File

@@ -656,9 +656,9 @@ bool PlayerSAO::checkMovementCheat()
float lag_pool_max = m_env->getMaxLagEstimate() * 2.0;
lag_pool_max = MYMAX(lag_pool_max, LAG_POOL_MIN);
if (m_time_from_last_teleport > lag_pool_max) {
actionstream << "Player " << m_player->getName()
<< " moved too fast; resetting position"
<< std::endl;
actionstream << "Server: " << m_player->getName()
<< " moved too fast: V=" << d_vert << ", H=" << d_horiz
<< "; resetting position." << std::endl;
cheated = true;
}
setBasePosition(m_last_good_position);