diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2017-08-13 23:08:17 +0200 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2017-08-13 23:08:17 +0200 |
commit | 725a0f56db007d46000e6cd18e31824e5b60ee73 (patch) | |
tree | 38e515ae4282ecce1cd5e61e5538b9eaaa4e5565 /src/script/lua_api/l_particles.cpp | |
parent | d65d6160d83a47311ceb33738d2a5e249e76e4c0 (diff) | |
download | minetest-725a0f56db007d46000e6cd18e31824e5b60ee73.tar.gz minetest-725a0f56db007d46000e6cd18e31824e5b60ee73.tar.bz2 minetest-725a0f56db007d46000e6cd18e31824e5b60ee73.zip |
LocalPlayer::accelerateHorizontal: cleanups
* Properly use v3f default constructor
* v3f d_wanted = target_speed - m_speed; and d_wanted = target_speed * 0.1f - m_speed * 0.1f; can be factorized to d_wanted = (target_speed - m_speed) * 0.1f; => d_wanted *= 0.1f;
Diffstat (limited to 'src/script/lua_api/l_particles.cpp')
0 files changed, 0 insertions, 0 deletions