mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Make players respect makes_footstep_sound in the object properties
This commit is contained in:
parent
de028fc056
commit
6658ad3d94
4 changed files with 17 additions and 4 deletions
|
@ -1583,6 +1583,10 @@ void GenericCAO::processMessage(const std::string &data)
|
|||
m_initial_tx_basepos_set = true;
|
||||
m_tx_basepos = m_prop.initial_sprite_basepos;
|
||||
}
|
||||
if (m_is_local_player) {
|
||||
LocalPlayer *player = m_env->getLocalPlayer();
|
||||
player->makes_footstep_sound = m_prop.makes_footstep_sound;
|
||||
}
|
||||
|
||||
if ((m_is_player && !m_is_local_player) && m_prop.nametag == "")
|
||||
m_prop.nametag = m_name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue