LocalPlayer::accelerateHorizontal: cleanups
authorLoic Blot <loic.blot@unix-experience.fr>
Sun, 13 Aug 2017 21:08:17 +0000 (23:08 +0200)
committerLoic Blot <loic.blot@unix-experience.fr>
Sun, 13 Aug 2017 21:08:17 +0000 (23:08 +0200)
commit725a0f56db007d46000e6cd18e31824e5b60ee73
tree38e515ae4282ecce1cd5e61e5538b9eaaa4e5565
parentd65d6160d83a47311ceb33738d2a5e249e76e4c0
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;
src/localplayer.cpp