mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 23:52: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
|
@_time_in_air = Gosu.milliseconds
|
||||||
elsif !@jumping && @y > @floor
|
elsif !@jumping && @y > @floor
|
||||||
@falling = true
|
@falling = true
|
||||||
|
@_time_in_air ||= Gosu.milliseconds # FIXME
|
||||||
else
|
else
|
||||||
if @jumping
|
if @jumping
|
||||||
if @y <= @floor
|
if @y <= @floor
|
||||||
|
|||||||
Reference in New Issue
Block a user