diff options
author | frosch <frosch@openttd.org> | 2012-12-08 17:18:51 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-12-08 17:18:51 +0000 |
commit | b533523258dfd943caa307d28413693bcaa64007 (patch) | |
tree | 1236d0e560354d9b22d34269ba5ff99265a94cf6 /src/strings_func.h | |
parent | 18a5ba4ad7967c537854a3061df9e600c8f55bf7 (diff) | |
download | openttd-b533523258dfd943caa307d28413693bcaa64007.tar.xz |
(svn r24801) -Codechange: Add functions to set integral DParams to suitable values for size computations.
Diffstat (limited to 'src/strings_func.h')
-rw-r--r-- | src/strings_func.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/strings_func.h b/src/strings_func.h index 395a80e1a..f977b3b3c 100644 --- a/src/strings_func.h +++ b/src/strings_func.h @@ -155,6 +155,9 @@ static inline void SetDParam(uint n, uint64 v) _global_string_params.SetParam(n, v); } +void SetDParamMaxValue(uint n, uint64 max_value, uint min_count = 0); +void SetDParamMaxDigits(uint n, uint count); + void SetDParamStr(uint n, const char *str); void CopyInDParam(int offs, const uint64 *src, int num); |