Fix attachment for ghost karts
This commit is contained in:
parent
fe4c918f3a
commit
279e15f894
@ -152,15 +152,15 @@ void GhostKart::update(int ticks)
|
||||
|
||||
Attachment::AttachmentType attach_type =
|
||||
ReplayRecorder::codeToEnumAttach(m_all_bonus_info[idx].m_attachment);
|
||||
int attach_ticks = 0;
|
||||
int16_t attach_ticks = 0;
|
||||
if (attach_type == Attachment::ATTACH_BUBBLEGUM_SHIELD)
|
||||
attach_ticks = stk_config->time2Ticks(10);
|
||||
attach_ticks = (int16_t)stk_config->time2Ticks(10);
|
||||
else if (attach_type == Attachment::ATTACH_BOMB)
|
||||
attach_ticks = stk_config->time2Ticks(30);
|
||||
attach_ticks = (int16_t)stk_config->time2Ticks(30);
|
||||
// The replay history will take care of clearing,
|
||||
// just make sure it won't expire by itself
|
||||
else
|
||||
attach_ticks = stk_config->time2Ticks(300);
|
||||
attach_ticks = 32767;
|
||||
|
||||
if ( attach_type == Attachment::ATTACH_NOTHING )
|
||||
m_attachment->clear();
|
||||
|
Loading…
Reference in New Issue
Block a user