Use reset function from powerup
This commit is contained in:
parent
7ad349a7ed
commit
1becb50cf8
@ -133,7 +133,7 @@ void AbstractKartAnimation::addNetworkAnimationChecker(bool reset_powerup)
|
|||||||
if (m_kart)
|
if (m_kart)
|
||||||
{
|
{
|
||||||
p = m_kart->getPowerup();
|
p = m_kart->getPowerup();
|
||||||
p->set(PowerupManager::POWERUP_NOTHING);
|
p->reset();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -148,7 +148,7 @@ void AbstractKartAnimation::addNetworkAnimationChecker(bool reset_powerup)
|
|||||||
/*replay_function*/[p]()
|
/*replay_function*/[p]()
|
||||||
{
|
{
|
||||||
if (p)
|
if (p)
|
||||||
p->set(PowerupManager::POWERUP_NOTHING);
|
p->reset();
|
||||||
},
|
},
|
||||||
/*delete_function*/[cct]()
|
/*delete_function*/[cct]()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user