master
aa6 2017-03-11 09:09:23 +03:00
parent 3bdd2277b5
commit 2bbca539df
3 changed files with 8 additions and 3 deletions

View File

@ -1 +1 @@
0.4.25
0.4.26

View File

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