From eac29e8c16abad0954aa6bb2a4bae57f5d16cc19 Mon Sep 17 00:00:00 2001 From: auria Date: Tue, 2 Aug 2011 00:31:22 +0000 Subject: [PATCH] Improve resetting slipstream git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9408 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/graphics/slip_stream.cpp | 1 + src/karts/kart.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/graphics/slip_stream.cpp b/src/graphics/slip_stream.cpp index c7361d895..98cbbcca5 100644 --- a/src/graphics/slip_stream.cpp +++ b/src/graphics/slip_stream.cpp @@ -129,6 +129,7 @@ SlipStream::~SlipStream() void SlipStream::reset() { m_slipstream_mode = SS_NONE; + m_slipstream_time = 0; } // reset //----------------------------------------------------------------------------- diff --git a/src/karts/kart.cpp b/src/karts/kart.cpp index dfe60526d..1629d254d 100644 --- a/src/karts/kart.cpp +++ b/src/karts/kart.cpp @@ -483,6 +483,8 @@ void Kart::reset() m_camera->setInitialTransform(); } + m_slipstream->reset(); + // Reset animations and wheels m_kart_model->reset();