mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 15:42:35 +00:00
Fixed crash when jumping
This commit is contained in:
@@ -134,7 +134,7 @@ class IMICFPS
|
||||
end
|
||||
|
||||
def jump
|
||||
if InputMapper.down?(:jump) && window.current_state.collision_manager.on_ground?(self)
|
||||
if InputMapper.down?(:jump) && window.current_state.map.collision_manager.on_ground?(self)
|
||||
@velocity.y = 1.5
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user