diff options
author | Lean Rada <godffrey0@gmail.com> | 2021-08-16 23:56:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-16 17:56:38 +0200 |
commit | 328d9492256e600159d2e04987e493b3a269a067 (patch) | |
tree | 2f4392705197736767493d2f5f904e35b0444ec1 /src | |
parent | 4419e311a96821d12e64073f342877327c655dca (diff) | |
download | minetest-328d9492256e600159d2e04987e493b3a269a067.tar.gz minetest-328d9492256e600159d2e04987e493b3a269a067.tar.bz2 minetest-328d9492256e600159d2e04987e493b3a269a067.zip |
Start sprite animation at the beginning (#11509)
When setting a sprite animation, do not keep the last animation's frame number. Setting a new animation should start the animation at the start of the new animation.
Diffstat (limited to 'src')
-rw-r--r-- | src/client/content_cao.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/content_cao.cpp b/src/client/content_cao.cpp index c3ac613a5..83c8e15d4 100644 --- a/src/client/content_cao.cpp +++ b/src/client/content_cao.cpp @@ -1722,6 +1722,7 @@ void GenericCAO::processMessage(const std::string &data) m_tx_basepos = p; m_anim_num_frames = num_frames; + m_anim_frame = 0; m_anim_framelength = framelength; m_tx_select_horiz_by_yawpitch = select_horiz_by_yawpitch; |