From c738d1eeabbbe9164a25f6b69bc7ec1a3b44b051 Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Thu, 17 Aug 2017 20:23:54 +0200 Subject: 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/clouds.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/clouds.h') diff --git a/src/clouds.h b/src/clouds.h index b8d292c3b..78d88a02b 100644 --- a/src/clouds.h +++ b/src/clouds.h @@ -74,7 +74,7 @@ public: void update(const v3f &camera_p, const video::SColorf &color); - void updateCameraOffset(v3s16 camera_offset) + void updateCameraOffset(const v3s16 &camera_offset) { m_camera_offset = camera_offset; updateBox(); -- cgit v1.2.3