From 3a74b84007f2c0f0690524459cc935616f8805d2 Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Sun, 14 Feb 2016 17:45:06 +0100 Subject: Player::accelerateHorizontal/Vertical should be member of LocalPlayer --- src/localplayer.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/localplayer.h') diff --git a/src/localplayer.h b/src/localplayer.h index 40a7f089e..3ae0c4e51 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -45,7 +45,7 @@ public: bool isAttached; v3f overridePosition; - + void move(f32 dtime, Environment *env, f32 pos_max_d); void move(f32 dtime, Environment *env, f32 pos_max_d, std::vector *collision_info); @@ -81,6 +81,9 @@ public: } private: + void accelerateHorizontal(const v3f &target_speed, const f32 max_increase); + void accelerateVertical(const v3f &target_speed, const f32 max_increase); + // This is used for determining the sneaking range v3s16 m_sneak_node; // Whether the player is allowed to sneak -- cgit v1.2.3