This commit is contained in:
Alayan 2018-10-07 15:36:25 +02:00
parent aec3fb9e17
commit 2dfecdb85f
2 changed files with 6 additions and 1 deletions

View File

@ -363,7 +363,7 @@ SP::SPMesh* SlipStream::createMesh(Material* material, bool bonus_mesh)
//----------------------------------------------------------------------------- */ //----------------------------------------------------------------------------- */
void SlipStream::updateSlipstreamingTextures(float f, const AbstractKart *kart) void SlipStream::updateSlipstreamingTextures(float f, const AbstractKart *kart)
{ {
if (!kart || !m_node || !m_node_fast) if (!kart || kart->isEliminated() || !m_node || !m_node_fast)
{ {
if (m_node) if (m_node)
{ {

View File

@ -1309,6 +1309,11 @@ void Kart::eliminate()
m_attachment->clear(); m_attachment->clear();
} }
if (m_slipstream)
{
m_slipstream->reset();
}
m_kart_gfx->setCreationRateAbsolute(KartGFX::KGFX_TERRAIN, 0); m_kart_gfx->setCreationRateAbsolute(KartGFX::KGFX_TERRAIN, 0);
m_kart_gfx->setGFXInvisible(); m_kart_gfx->setGFXInvisible();
if (m_engine_sound) if (m_engine_sound)