diff options
author | skidd13 <skidd13@openttd.org> | 2007-11-26 16:01:29 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2007-11-26 16:01:29 +0000 |
commit | f56579e0d9f8c0db5398dafa4c7c08829b23fe80 (patch) | |
tree | 14935bc71c99622f02f216f13d5e4c712b21ce20 /src/core/math_func.hpp | |
parent | 91152b925e7f1ccbb3b7bcecf814118c06c0d2b6 (diff) | |
download | openttd-f56579e0d9f8c0db5398dafa4c7c08829b23fe80.tar.xz |
(svn r11526) -Codechange: Rename the function delta fitting to the naming style
Diffstat (limited to 'src/core/math_func.hpp')
-rw-r--r-- | src/core/math_func.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/math_func.hpp b/src/core/math_func.hpp index a7f07d614..82a4799ac 100644 --- a/src/core/math_func.hpp +++ b/src/core/math_func.hpp @@ -175,7 +175,7 @@ static inline int32 ClampToI32(const int64 a) * @param b The second scalar * @return The absolute difference between the given scalars */ -template <typename T> static inline T delta(const T a, const T b) { +template <typename T> static inline T Delta(const T a, const T b) { return (a < b) ? b - a : a - b; } |