From bf783381eee07dd57ff8d0abf61e5f0f6135298f Mon Sep 17 00:00:00 2001 From: Cyberarm Date: Wed, 5 Sep 2018 08:37:52 -0500 Subject: [PATCH] Fix floating in midair, probably. --- lib/objects/player.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/objects/player.rb b/lib/objects/player.rb index 40a3c44..8490d97 100644 --- a/lib/objects/player.rb +++ b/lib/objects/player.rb @@ -132,6 +132,8 @@ class IMICFPS if button_down?(Gosu::KbSpace) && !@jumping @jumping = true @_time_in_air = Gosu.milliseconds + elsif !@jumping && @y > @floor + @falling = true else if @jumping if @y <= @floor