From c11f17020732d96e6830deadb8272f66c9af623b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 21 Sep 2017 22:22:35 +0300 Subject: Convert some functions from int32 types to int64. This mainly need for base and job exp, because now they using int64 type. --- src/common/utils.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/common/utils.h') 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); -- cgit v1.2.3-60-g2f50