mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-18 02:45:21 +02:00
Disable autoforward if player is dead
This commit is contained in:
@@ -100,7 +100,7 @@ public:
|
||||
bool makes_footstep_sound = true;
|
||||
|
||||
int last_animation = NO_ANIM;
|
||||
float last_animation_speed;
|
||||
float last_animation_speed = 0.0f;
|
||||
|
||||
std::string hotbar_image = "";
|
||||
std::string hotbar_selected_image = "";
|
||||
@@ -149,6 +149,8 @@ public:
|
||||
|
||||
bool getAutojump() const { return m_autojump; }
|
||||
|
||||
bool isDead() const { return hp <= 0; }
|
||||
|
||||
inline void addVelocity(const v3f &vel)
|
||||
{
|
||||
added_velocity += vel;
|
||||
|
Reference in New Issue
Block a user