summaryrefslogtreecommitdiff
path: root/src/vector.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-08 00:49:41 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-08 00:49:41 +0300
commitff5e17ff14a78af31d9d23cd1dfdb5404f9a8fa9 (patch)
tree51a99a43eba0b09ca9e5f554b3676d0308685797 /src/vector.h
parent538261b13990ee02bbc62d9704233885b15cee04 (diff)
downloadmanaverse-ff5e17ff14a78af31d9d23cd1dfdb5404f9a8fa9.tar.gz
manaverse-ff5e17ff14a78af31d9d23cd1dfdb5404f9a8fa9.tar.bz2
manaverse-ff5e17ff14a78af31d9d23cd1dfdb5404f9a8fa9.tar.xz
manaverse-ff5e17ff14a78af31d9d23cd1dfdb5404f9a8fa9.zip
Fix code style with new tool.
Diffstat (limited to 'src/vector.h')
-rw-r--r--src/vector.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vector.h b/src/vector.h
index 744b235c0..2caf48418 100644
--- a/src/vector.h
+++ b/src/vector.h
@@ -185,8 +185,8 @@ class Vector
*/
Vector normalized() const
{
- const float l = length();
- return Vector(x / l, y / l, z / l);
+ const float len = length();
+ return Vector(x / len, y / len, z / len);
}
float x, y, z;