Don't create hit effect for no graphics STK
This commit is contained in:
parent
3bbca7849d
commit
c0a350fe6e
@ -186,6 +186,8 @@ void Bowling::removeRollSfx()
|
|||||||
*/
|
*/
|
||||||
HitEffect* Bowling::getHitEffect() const
|
HitEffect* Bowling::getHitEffect() const
|
||||||
{
|
{
|
||||||
|
if (GUIEngine::isNoGraphics())
|
||||||
|
return NULL;
|
||||||
if (m_deleted_once)
|
if (m_deleted_once)
|
||||||
return NULL;
|
return NULL;
|
||||||
if(m_has_hit_kart)
|
if(m_has_hit_kart)
|
||||||
|
@ -624,6 +624,8 @@ void Flyable::explode(AbstractKart *kart_hit, PhysicalObject *object,
|
|||||||
*/
|
*/
|
||||||
HitEffect* Flyable::getHitEffect() const
|
HitEffect* Flyable::getHitEffect() const
|
||||||
{
|
{
|
||||||
|
if (GUIEngine::isNoGraphics())
|
||||||
|
return NULL;
|
||||||
return m_deleted_once ? NULL :
|
return m_deleted_once ? NULL :
|
||||||
new Explosion(getXYZ(), "explosion", "explosion_cake.xml");
|
new Explosion(getXYZ(), "explosion", "explosion_cake.xml");
|
||||||
} // getHitEffect
|
} // getHitEffect
|
||||||
|
Loading…
x
Reference in New Issue
Block a user