1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-21 03:55:21 +02:00

Fix local animations not resetting

Converts `LocalPlayerAnimation` to a scoped enum to prevent such bugs in the future
This commit is contained in:
Lars Müller
2023-07-02 12:47:18 +02:00
committed by GitHub
parent ff498fc206
commit 25ef8f3934
3 changed files with 13 additions and 11 deletions

View File

@@ -34,7 +34,7 @@ class ClientEnvironment;
class IGameDef;
struct collisionMoveResult;
enum LocalPlayerAnimations
enum class LocalPlayerAnimation
{
NO_ANIM,
WALK_ANIM,
@@ -90,7 +90,7 @@ public:
bool makes_footstep_sound = true;
int last_animation = NO_ANIM;
LocalPlayerAnimation last_animation = LocalPlayerAnimation::NO_ANIM;
float last_animation_speed = 0.0f;
std::string hotbar_image = "";