diff options
author | Einar Johan Trøan Sømåen | 2012-07-26 15:59:26 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-07-26 15:59:26 +0200 |
commit | ef11f9d0c53cbdd9d88a99143de6f43f34d7e24d (patch) | |
tree | 8dfaee0ba16e18a8e3772dd5afc9123d5c4e78d2 /engines/wintermute/math | |
parent | 38507fa9895620639d8733dbb4e085dfb2282a33 (diff) | |
download | scummvm-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')
-rw-r--r-- | engines/wintermute/math/math_util.cpp | 8 |
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;
}
|