From 7d08d859b11bf39733ab81f8edf3d650b1dc32c8 Mon Sep 17 00:00:00 2001 From: orbea Date: Tue, 14 Apr 2020 19:23:06 -0700 Subject: [PATCH] Only drain stamina when moving. --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index b696017..4644aea 100644 --- a/init.lua +++ b/init.lua @@ -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