mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Player collisionbox: Make settable
Breaks compatibility with old clients.
This commit is contained in:
parent
5045bdc6d8
commit
49920cfe8d
4 changed files with 13 additions and 8 deletions
|
@ -972,7 +972,7 @@ void GenericCAO::step(float dtime, ClientEnvironment *env)
|
|||
if (m_is_visible) {
|
||||
int old_anim = player->last_animation;
|
||||
float old_anim_speed = player->last_animation_speed;
|
||||
m_position = player->getPosition() + v3f(0,BS,0);
|
||||
m_position = player->getPosition();
|
||||
m_velocity = v3f(0,0,0);
|
||||
m_acceleration = v3f(0,0,0);
|
||||
pos_translator.vect_show = m_position;
|
||||
|
@ -1512,6 +1512,7 @@ void GenericCAO::processMessage(const std::string &data)
|
|||
if (m_is_local_player) {
|
||||
LocalPlayer *player = m_env->getLocalPlayer();
|
||||
player->makes_footstep_sound = m_prop.makes_footstep_sound;
|
||||
player->setCollisionbox(m_selection_box);
|
||||
}
|
||||
|
||||
if ((m_is_player && !m_is_local_player) && m_prop.nametag == "")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue