Fix falling edge case where the Player hasn't jumped before

This commit is contained in:
2018-09-09 07:49:23 -05:00
parent 16e0e4dcff
commit d37758526a

View File

@@ -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