mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 07:32:35 +00:00
Fix falling edge case where the Player hasn't jumped before
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user