From e1ce1e5f0d58f7d29efe836e5c33713af3e6c7f5 Mon Sep 17 00:00:00 2001 From: Amaury Date: Tue, 21 Apr 2020 10:02:16 +0200 Subject: [PATCH] Changement gestion colliosn sol dans player --- .../DungeonAndDemaonScript/GestionPlayer.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; } }