From 328d9492256e600159d2e04987e493b3a269a067 Mon Sep 17 00:00:00 2001 From: Lean Rada Date: Mon, 16 Aug 2021 23:56:38 +0800 Subject: 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. --- src/client/content_cao.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; -- cgit v1.2.3