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
commitb4ef380c49c2dfc78c7bd25a8ebc15d7a27b7243 (patch)
tree5108d49e47c818fec8c5b29f346e207dde9f22a7 /src/core/math_func.hpp
parent640e5478862e3b83d85db6332e0d82a45a95e4ed (diff)
downloadopenttd-b4ef380c49c2dfc78c7bd25a8ebc15d7a27b7243.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;
}