summaryrefslogtreecommitdiff
path: root/src/common/utils.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2017-09-22 00:13:15 +0200
committerGitHub <noreply@github.com>2017-09-22 00:13:15 +0200
commit46f5d10a555785899c04eda74e21922e92a2fb5b (patch)
tree934ec81ed964a7409ad2ba73616210f3cdf12389 /src/common/utils.h
parent7cbd35644b73f254fc976070cd1e993aa43a7cfc (diff)
parentee666f0279bca6dab137a8a8199665b7a4e7f8d8 (diff)
downloadhercules-46f5d10a555785899c04eda74e21922e92a2fb5b.tar.gz
hercules-46f5d10a555785899c04eda74e21922e92a2fb5b.tar.bz2
hercules-46f5d10a555785899c04eda74e21922e92a2fb5b.tar.xz
hercules-46f5d10a555785899c04eda74e21922e92a2fb5b.zip
Merge pull request #1844 from 4144/newpackets
Add packets for almost all 2014-2017 clients
Diffstat (limited to 'src/common/utils.h')
-rw-r--r--src/common/utils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/utils.h b/src/common/utils.h
index 9d3c323ef..e77c63cf2 100644
--- a/src/common/utils.h
+++ b/src/common/utils.h
@@ -44,6 +44,7 @@ bool exists(const char* filename);
/// calculates the value of A / B, in percent (rounded down)
unsigned int get_percentage(const unsigned int A, const unsigned int B);
+uint64 get_percentage64(const uint64 A, const uint64 B);
int64 apply_percentrate64(int64 value, int rate, int maxrate);
int apply_percentrate(int value, int rate, int maxrate);