From 6a3445e091ede98e69482ec470d3a1161d14d3a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Sun, 2 Aug 2020 14:02:27 -0700 Subject: [PATCH] turns out timer duration can be a float --- MWSE/mods/celediel/MoreAttentiveGuards/sneak.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MWSE/mods/celediel/MoreAttentiveGuards/sneak.lua b/MWSE/mods/celediel/MoreAttentiveGuards/sneak.lua index a5df054..53467bc 100644 --- a/MWSE/mods/celediel/MoreAttentiveGuards/sneak.lua +++ b/MWSE/mods/celediel/MoreAttentiveGuards/sneak.lua @@ -23,8 +23,8 @@ local function calculateFollowTime() -- if player sneak is 100 or greater, guards won't follow at all local max = tes3.hasCodePatchFeature(110) and (sneak <= 100 and 101 or 0) or 101 local value = (max - sneak) / 3 - -- round to nearest integer and clamp to positive - return math.clamp(math.round(value, 0), 0, math.huge) + -- clamp to positive + return math.clamp(value, 0, math.huge) end local function doChecks(e)