From d37758526a7b55671b2e0647526428303413d1f1 Mon Sep 17 00:00:00 2001 From: Cyberarm Date: Sun, 9 Sep 2018 07:49:23 -0500 Subject: [PATCH] Fix falling edge case where the Player hasn't jumped before --- lib/objects/player.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/objects/player.rb b/lib/objects/player.rb index 66235dd..45f3ccb 100644 --- a/lib/objects/player.rb +++ b/lib/objects/player.rb @@ -132,6 +132,7 @@ class IMICFPS @_time_in_air = Gosu.milliseconds elsif !@jumping && @y > @floor @falling = true + @_time_in_air ||= Gosu.milliseconds # FIXME else if @jumping if @y <= @floor