Fix #3595
This commit is contained in:
parent
6886e1952e
commit
313ca1d902
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user