From dfc2250457ad340b6037e990f62bce3d9996fd1a Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 1 Sep 2019 01:22:44 -0300 Subject: Fix a really complex equation involving thursdays, 1970, day zero and divisions. --- npc/functions/util.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'npc/functions/util.txt') diff --git a/npc/functions/util.txt b/npc/functions/util.txt index 389a764ac..703e167a5 100644 --- a/npc/functions/util.txt +++ b/npc/functions/util.txt @@ -800,7 +800,7 @@ function script gettimeparam { return .@t; // Weeks (estimative) - .@a=.@t+3; // 01/01/1970 was a Thursday. So this will make it float at sunday. + .@a=.@t+4; // 01/01/1970 was a Thursday. So this will make it float at sunday. .@a=.@a/7; if (.@p == GETTIME_WEEKDAY) return .@a; -- cgit v1.2.3-60-g2f50