diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-09-01 01:22:44 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-09-01 01:22:44 -0300 |
commit | dfc2250457ad340b6037e990f62bce3d9996fd1a (patch) | |
tree | 3f1c752cb99f33e62d036a362980efe00b809a1b /npc | |
parent | bb646d0be8ac08ef41fe431572c4e9db1a461dcc (diff) | |
download | serverdata-dfc2250457ad340b6037e990f62bce3d9996fd1a.tar.gz serverdata-dfc2250457ad340b6037e990f62bce3d9996fd1a.tar.bz2 serverdata-dfc2250457ad340b6037e990f62bce3d9996fd1a.tar.xz serverdata-dfc2250457ad340b6037e990f62bce3d9996fd1a.zip |
Fix a really complex equation involving thursdays, 1970, day zero and divisions.
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/util.txt | 2 |
1 files changed, 1 insertions, 1 deletions
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; |