diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-03-02 13:34:37 +0100 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-03-05 09:45:58 +0100 |
commit | 4f66e718cc72eeb8c600a0809c260d8f9ed43ea0 (patch) | |
tree | 093653e5a84497998ea09b60748b35742ad14e08 /src/wieldanimation.cpp | |
parent | f9d3ab01d35cbad6d9bd0f203c6647fbfe251754 (diff) | |
download | minetest-4f66e718cc72eeb8c600a0809c260d8f9ed43ea0.tar.xz |
Fix code quality in new files
Diffstat (limited to 'src/wieldanimation.cpp')
-rw-r--r-- | src/wieldanimation.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/wieldanimation.cpp b/src/wieldanimation.cpp index f1ff51a75..10e744623 100644 --- a/src/wieldanimation.cpp +++ b/src/wieldanimation.cpp @@ -14,7 +14,6 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ - #include "wieldanimation.h" v3f WieldAnimation::getTranslationAt(float time) const @@ -140,7 +139,6 @@ void WieldAnimation::fillRepository() .addNode(quatFromAngles(0.0f, 0.0f, 0.0f)); poke.m_rotationspline.addIndex(1.0, 0, 2).addIndex(1.0, 2, 2); poke.setDuration(0.5f); - } void WieldAnimation::serialize(std::ostream &os, u16 protocol_version) @@ -197,7 +195,7 @@ WieldAnimation WieldAnimation::deSerialize(std::istream &is) u32 rotationNodes_size = readU32(is); for (u32 i = 0; i < rotationNodes_size; i++) { v3f node = readV3F32(is); - anim.m_rotationspline.addNode(quatFromAngles(node.X,node.Y, node.Z)); + anim.m_rotationspline.addNode(quatFromAngles(node.X, node.Y, node.Z)); } u32 rotationIndex_size = readU32(is); for (u32 i = 0; i < rotationIndex_size; i++) { |