Only drain stamina when moving.

This commit is contained in:
orbea 2020-04-14 19:23:06 -07:00 committed by texmex
parent b5867bdaa1
commit 7d08d859b1

@ -199,7 +199,7 @@ local function sprint_step(player, dtime)
if dir then
key_press = ctrl.aux1 and ctrl.up and not ctrl.left and not ctrl.right
else
key_press = ctrl.aux1
key_press = ctrl.aux1 and (ctrl.up or ctrl.left or ctrl.right or crtl.down)
end
if not key_press then