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

Player movement speed and node access distance checking

This commit is contained in:
Perttu Ahola 2011-11-26 14:03:56 +02:00
parent 8bd178c2e5
commit 1bfc3c1eb9
3 changed files with 79 additions and 13 deletions

View file

@ -181,7 +181,9 @@ void Player::deSerialize(std::istream &is)
ServerRemotePlayer::ServerRemotePlayer(ServerEnvironment *env):
Player(env->getGameDef()),
ServerActiveObject(env, v3f(0,0,0))
ServerActiveObject(env, v3f(0,0,0)),
m_last_good_position(0,0,0),
m_last_good_position_age(0)
{
}
ServerRemotePlayer::ServerRemotePlayer(ServerEnvironment *env, v3f pos_, u16 peer_id_,