diff options
author | skidd13 <skidd13@openttd.org> | 2008-06-22 15:41:38 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2008-06-22 15:41:38 +0000 |
commit | 6169c3fc17861120ed1454843d0966394ccd900b (patch) | |
tree | 5108d49e47c818fec8c5b29f346e207dde9f22a7 /src/core/math_func.hpp | |
parent | 8b7d893d85d2493548c023000fca99b1ce16b5f2 (diff) | |
download | openttd-6169c3fc17861120ed1454843d0966394ccd900b.tar.xz |
(svn r13607) -Fix (r13606): some coding style issues got fixed but some got/stayed broken
Diffstat (limited to 'src/core/math_func.hpp')
-rw-r--r-- | src/core/math_func.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/math_func.hpp b/src/core/math_func.hpp index 6b91b3ddb..e2cc8b89c 100644 --- a/src/core/math_func.hpp +++ b/src/core/math_func.hpp @@ -192,7 +192,8 @@ static FORCEINLINE uint16 ClampToU16(const uint64 a) * @return The absolute difference between the given scalars */ template <typename T> -static FORCEINLINE T Delta(const T a, const T b) { +static FORCEINLINE T Delta(const T a, const T b) +{ return (a < b) ? b - a : a - b; } |