1
0
Fork 0
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:
BlockMen 2015-08-12 17:13:19 +02:00
parent 2c25107c31
commit 8a6e921cb8
3 changed files with 40 additions and 59 deletions

View file

@ -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);