summaryrefslogtreecommitdiff
path: root/src/core/math_func.hpp
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2008-06-22 15:41:38 +0000
committerskidd13 <skidd13@openttd.org>2008-06-22 15:41:38 +0000
commit6169c3fc17861120ed1454843d0966394ccd900b (patch)
tree5108d49e47c818fec8c5b29f346e207dde9f22a7 /src/core/math_func.hpp
parent8b7d893d85d2493548c023000fca99b1ce16b5f2 (diff)
downloadopenttd-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.hpp3
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;
}