From 313ca1d902e2669a18c92ee423842a88c21056af Mon Sep 17 00:00:00 2001 From: Benau Date: Sat, 24 Nov 2018 02:39:32 +0800 Subject: [PATCH] Fix #3595 --- src/karts/ghost_kart.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/karts/ghost_kart.cpp b/src/karts/ghost_kart.cpp index cc7bfa654..8b18e849a 100644 --- a/src/karts/ghost_kart.cpp +++ b/src/karts/ghost_kart.cpp @@ -162,12 +162,16 @@ void GhostKart::update(int ticks) else attach_ticks = 32767; - if ( attach_type == Attachment::ATTACH_NOTHING ) + if (attach_type == Attachment::ATTACH_NOTHING) m_attachment->clear(); // Setting again reinitialize the graphical size of the attachment, // so do so only if the type change - else if ( attach_type != m_attachment->getType()) - m_attachment->set(attach_type,attach_ticks); + else if (attach_type != m_attachment->getType()) + { + m_attachment->set(attach_type, attach_ticks, NULL, + /*disable_swatter_animation*/false, + /*set_by_rewind_parachute*/true); + } // So that the attachment's model size is updated m_attachment->update(ticks);