Fix #2152 (star effect not showing in graphics level 1).

This commit is contained in:
hiker 2015-08-05 08:07:58 +10:00
parent 4f4a1c0373
commit 93a5a91628
2 changed files with 4 additions and 10 deletions

View File

@ -109,11 +109,8 @@ ExplosionAnimation::ExplosionAnimation(AbstractKart *kart,
float t = m_kart->getKartProperties()->getExplosionInvulnerabilityTime() *
m_kart->getPlayerDifficulty()->getExplosionInvulnerabilityTime();
m_kart->setInvulnerableTime(t);
if ( UserConfigParams::m_graphical_effects )
{
m_kart->showStarEffect(t);
}
m_kart->showStarEffect(t);
m_kart->getAttachment()->clear();
}; // ExplosionAnimation

View File

@ -1077,11 +1077,8 @@ void Kart::update(float dt)
m_max_speed->getCurrentMaxSpeed());
#endif
if ( UserConfigParams::m_graphical_effects )
{
// update star effect (call will do nothing if stars are not activated)
m_stars_effect->update(dt);
}
// update star effect (call will do nothing if stars are not activated)
m_stars_effect->update(dt);
if(m_squash_time>=0)
{