1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Player::accelerateHorizontal/Vertical should be member of LocalPlayer

This commit is contained in:
Loic Blot 2016-02-14 17:45:06 +01:00
parent cfc8e44759
commit 3a74b84007
4 changed files with 37 additions and 39 deletions

View file

@ -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<CollisionInfo> *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