Modernize client code (#6250)
[oweals/minetest.git] / src / localplayer.h
index 67b22b65636eecc1f3d1eef96c9c356ff513000a..ffaa83f33667e1f7a8785e755f53a39e027cf3e4 100644 (file)
@@ -79,7 +79,7 @@ public:
        void old_move(f32 dtime, Environment *env, f32 pos_max_d,
                        std::vector<CollisionInfo> *collision_info);
 
-       void applyControl(float dtime, ClientEnvironment *env);
+       void applyControl(float dtime, Environment *env);
 
        v3s16 getStandingNodePos();
        v3s16 getFootstepNodePos();
@@ -144,8 +144,7 @@ public:
        void setCollisionbox(const aabb3f &box) { m_collisionbox = box; }
 
 private:
-       void accelerateHorizontal(const v3f &target_speed,
-               const f32 max_increase, bool slippery);
+       void accelerateHorizontal(const v3f &target_speed, f32 max_increase, bool slippery);
        void accelerateVertical(const v3f &target_speed, const f32 max_increase);
        bool updateSneakNode(Map *map, const v3f &position, const v3f &sneak_max);