diff --git a/DungeonAndDeamonScript/DungeonAndDemaonScript/GestionPlayer.cpp b/DungeonAndDeamonScript/DungeonAndDemaonScript/GestionPlayer.cpp index c312654..d61ba66 100644 --- a/DungeonAndDeamonScript/DungeonAndDemaonScript/GestionPlayer.cpp +++ b/DungeonAndDeamonScript/DungeonAndDemaonScript/GestionPlayer.cpp @@ -70,12 +70,10 @@ void GestionPlayer::traitementInput() if (i->is_action_pressed("ui_select")) saut(); - if (is_on_floor()) { - on_ground = true; + if (on_ground) { p.velocity.y += 0; } else { - on_ground = false; p.velocity.y += gravity; } }