Restore dropping bubblegum after shield explosion

This commit is contained in:
Deve 2018-04-20 22:04:29 +02:00
parent 78f96d4818
commit e0a5bd1027

View File

@ -606,9 +606,8 @@ void Attachment::update(int ticks)
}
case ATTACH_BUBBLEGUM_SHIELD:
case ATTACH_NOLOK_BUBBLEGUM_SHIELD:
if (m_ticks_left < 0)
if (m_ticks_left <= 0)
{
m_ticks_left = 0;
if (m_bubble_explode_sound) m_bubble_explode_sound->deleteSFX();
m_bubble_explode_sound =
SFXManager::get()->createSoundSource("bubblegum_explode");