mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix jittering sounds on entities (fixes #2974)
This commit is contained in:
parent
2c25107c31
commit
8a6e921cb8
3 changed files with 40 additions and 59 deletions
|
@ -344,7 +344,7 @@ void LocalPlayer::move(f32 dtime, Environment *env, f32 pos_max_d,
|
|||
}
|
||||
}
|
||||
|
||||
if(!touching_ground_was && touching_ground){
|
||||
if(!result.standing_on_object && !touching_ground_was && touching_ground) {
|
||||
MtEvent *e = new SimpleTriggerEvent("PlayerRegainGround");
|
||||
m_gamedef->event()->put(e);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue