clientobject, clouds, collision, clientsimpleobject: code modernization (#6260)
authorLoïc Blot <nerzhul@users.noreply.github.com>
Thu, 17 Aug 2017 18:23:54 +0000 (20:23 +0200)
committerGitHub <noreply@github.com>
Thu, 17 Aug 2017 18:23:54 +0000 (20:23 +0200)
commitc738d1eeabbbe9164a25f6b69bc7ec1a3b44b051
tree6a7c153cd4e1f468c627ab5811e76fc7c77f9a44
parent9bd18874a14774f2585955719b77f8894d6e6618
clientobject, clouds, collision, clientsimpleobject: code modernization (#6260)

* clientobject, clouds, collision, clientsimpleobject: code modernization

* use range-based for loops
* simplify some tests
* various code style fixes
* use emplace_back instead of push_back when necessary
* use auto on some iterators
* use default operator when needed
* unroll v3s16 creation on collisionMoveSimple
src/clientobject.cpp
src/clientsimpleobject.h
src/clouds.cpp
src/clouds.h
src/collision.cpp
src/collision.h