mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix local animation not instantly updating after being set
This commit is contained in:
parent
4f6f09590c
commit
f66ed2c27f
2 changed files with 3 additions and 0 deletions
|
@ -1815,6 +1815,7 @@ void GenericCAO::processMessage(const std::string &data)
|
||||||
{
|
{
|
||||||
updateAnimation();
|
updateAnimation();
|
||||||
}
|
}
|
||||||
|
// FIXME: ^ This code is trash. It's also broken.
|
||||||
}
|
}
|
||||||
} else if (cmd == AO_CMD_SET_ANIMATION_SPEED) {
|
} else if (cmd == AO_CMD_SET_ANIMATION_SPEED) {
|
||||||
m_animation_speed = readF32(is);
|
m_animation_speed = readF32(is);
|
||||||
|
|
|
@ -1404,6 +1404,8 @@ void Client::handleCommand_LocalPlayerAnimations(NetworkPacket* pkt)
|
||||||
*pkt >> player->local_animations[2];
|
*pkt >> player->local_animations[2];
|
||||||
*pkt >> player->local_animations[3];
|
*pkt >> player->local_animations[3];
|
||||||
*pkt >> player->local_animation_speed;
|
*pkt >> player->local_animation_speed;
|
||||||
|
|
||||||
|
player->last_animation = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Client::handleCommand_EyeOffset(NetworkPacket* pkt)
|
void Client::handleCommand_EyeOffset(NetworkPacket* pkt)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue