Fix floating in midair, probably.

This commit is contained in:
2018-09-05 08:37:52 -05:00
parent cd16896f86
commit bf783381ee

View File

@@ -132,6 +132,8 @@ class IMICFPS
if button_down?(Gosu::KbSpace) && !@jumping if button_down?(Gosu::KbSpace) && !@jumping
@jumping = true @jumping = true
@_time_in_air = Gosu.milliseconds @_time_in_air = Gosu.milliseconds
elsif !@jumping && @y > @floor
@falling = true
else else
if @jumping if @jumping
if @y <= @floor if @y <= @floor