Fix restarting race not resetting kart velocity during a cannon ride. Fixes #2738
This commit is contained in:
parent
20ed2ad277
commit
02d3e7a371
@ -78,12 +78,15 @@ AbstractKart::~AbstractKart()
|
|||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
void AbstractKart::reset()
|
void AbstractKart::reset()
|
||||||
{
|
{
|
||||||
Moveable::reset();
|
// important to delete animations before calling reset, as some animations
|
||||||
|
// set the kart velocity in their destructor (e.g. cannon) which "reset"
|
||||||
|
// can then cancel. See #2738
|
||||||
if(m_kart_animation)
|
if(m_kart_animation)
|
||||||
{
|
{
|
||||||
delete m_kart_animation;
|
delete m_kart_animation;
|
||||||
m_kart_animation = NULL;
|
m_kart_animation = NULL;
|
||||||
}
|
}
|
||||||
|
Moveable::reset();
|
||||||
} // reset
|
} // reset
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user