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:
@@ -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 = "";
|
||||
|
Reference in New Issue
Block a user