Cleanup LocalPlayer::applyControl
authorLoic Blot <loic.blot@unix-experience.fr>
Sun, 13 Aug 2017 21:02:32 +0000 (23:02 +0200)
committerLoic Blot <loic.blot@unix-experience.fr>
Sun, 13 Aug 2017 21:02:32 +0000 (23:02 +0200)
commitd65d6160d83a47311ceb33738d2a5e249e76e4c0
tree210984937e091895dd449cae65bf042bff46e06c
parent2ea26e655d90be538c75aad5cc7ede2c5709179f
Cleanup LocalPlayer::applyControl

* Use Environment interface instead of ClientEnvironemnt
* Don't create slippery variable and then re-affect it
* itemgroup_get return a int, properly test != 0 to be clearer
src/localplayer.cpp
src/localplayer.h