aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/math/math_util.cpp
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-07-26 15:59:26 +0200
committerEinar Johan Trøan Sømåen2012-07-26 15:59:26 +0200
commitef11f9d0c53cbdd9d88a99143de6f43f34d7e24d (patch)
tree8dfaee0ba16e18a8e3772dd5afc9123d5c4e78d2 /engines/wintermute/math/math_util.cpp
parent38507fa9895620639d8733dbb4e085dfb2282a33 (diff)
downloadscummvm-rg350-ef11f9d0c53cbdd9d88a99143de6f43f34d7e24d.tar.gz
scummvm-rg350-ef11f9d0c53cbdd9d88a99143de6f43f34d7e24d.tar.bz2
scummvm-rg350-ef11f9d0c53cbdd9d88a99143de6f43f34d7e24d.zip
WINTERMUTE: Run Astyle with add-braces to break one-line statements into easier-to-read-code.
Diffstat (limited to 'engines/wintermute/math/math_util.cpp')
-rw-r--r--engines/wintermute/math/math_util.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/wintermute/math/math_util.cpp b/engines/wintermute/math/math_util.cpp
index fe7325baa4..ef5b676662 100644
--- a/engines/wintermute/math/math_util.cpp
+++ b/engines/wintermute/math/math_util.cpp
@@ -34,14 +34,18 @@ namespace WinterMute {
//////////////////////////////////////////////////////////////////////////
float MathUtil::round(float val) {
float result = floor(val);
- if (val - result >= 0.5) result += 1.0;
+ if (val - result >= 0.5) {
+ result += 1.0;
+ }
return result;
}
//////////////////////////////////////////////////////////////////////////
float MathUtil::roundUp(float val) {
float result = floor(val);
- if (val - result > 0) result += 1.0;
+ if (val - result > 0) {
+ result += 1.0;
+ }
return result;
}