Lag fix
parent
3bdd2277b5
commit
2bbca539df
9
init.lua
9
init.lua
|
@ -187,8 +187,13 @@ end
|
|||
----------------------------------------------------------------------------------------------------
|
||||
function minetest_wadsprint.scan_player_controls(player)
|
||||
local control = player.obj:get_player_control()
|
||||
if player.is_sprinting and control["up"] then
|
||||
return
|
||||
if control["up"] then
|
||||
if player.is_sprinting then
|
||||
return
|
||||
elseif player.is_ready_to_sprint then
|
||||
minetest_wadsprint.switch_to_sprinting(player)
|
||||
return
|
||||
end
|
||||
end
|
||||
if control["left"] and control["right"] and not control["down"] then
|
||||
if player.stamina > minetest_wadsprint.DYSPNEA_THRESHOLD_VALUE then
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Loading…
Reference in New Issue