Remove more hit effects for no graphics STK
This commit is contained in:
@@ -307,7 +307,7 @@ void Attachment::hitBanana(ItemState *item_state)
|
||||
case ATTACH_BOMB:
|
||||
{
|
||||
add_a_new_item = false;
|
||||
if (!RewindManager::get()->isRewinding())
|
||||
if (!GUIEngine::isNoGraphics() && !RewindManager::get()->isRewinding())
|
||||
{
|
||||
HitEffect* he = new Explosion(m_kart->getXYZ(), "explosion",
|
||||
"explosion_bomb.xml");
|
||||
@@ -516,7 +516,7 @@ void Attachment::update(int ticks)
|
||||
m_initial_speed = 0;
|
||||
if (m_ticks_left <= 0)
|
||||
{
|
||||
if (!RewindManager::get()->isRewinding())
|
||||
if (!GUIEngine::isNoGraphics() && !RewindManager::get()->isRewinding())
|
||||
{
|
||||
HitEffect* he = new Explosion(m_kart->getXYZ(), "explosion",
|
||||
"explosion_bomb.xml");
|
||||
|
||||
@@ -426,7 +426,8 @@ void Swatter::squashThingsAround()
|
||||
}
|
||||
}
|
||||
|
||||
if (has_created_explosion_animation && !RewindManager::get()->isRewinding())
|
||||
if (!GUIEngine::isNoGraphics() && has_created_explosion_animation &&
|
||||
!RewindManager::get()->isRewinding())
|
||||
{
|
||||
HitEffect *he = new Explosion(m_kart->getXYZ(), "explosion", "explosion.xml");
|
||||
if(m_kart->getController()->isLocalPlayerController())
|
||||
|
||||
@@ -1772,7 +1772,7 @@ void Kart::update(int ticks)
|
||||
m_is_jumping = false;
|
||||
m_kart_model->setAnimation(KartModel::AF_DEFAULT);
|
||||
|
||||
if (!has_animation_before)
|
||||
if (!GUIEngine::isNoGraphics() && !has_animation_before)
|
||||
{
|
||||
HitEffect *effect = new Explosion(getXYZ(), "jump",
|
||||
"jump_explosion.xml");
|
||||
|
||||
Reference in New Issue
Block a user