Remove hardcoded number assuming tick duration
This commit is contained in:
@@ -1452,7 +1452,7 @@ void SkiddingAI::handleBubblegum(int item_skill, const std::vector<const Item *>
|
||||
//if it is a bomb, wait : we may pass it to another kart before the timer runs out
|
||||
if (item_skill == 5 && type == Attachment::ATTACH_BOMB)
|
||||
{
|
||||
if (m_kart->getAttachment()->getTicksLeft() > 360) //3 seconds
|
||||
if (m_kart->getAttachment()->getTicksLeft() > stk_config->time2Ticks(3))
|
||||
{
|
||||
m_controls->setFire(true);
|
||||
m_controls->setLookBack(false);
|
||||
@@ -1778,7 +1778,7 @@ void SkiddingAI::handleSwatter(int item_skill)
|
||||
//if it is a bomb, wait : we may pass it to another kart before the timer runs out
|
||||
if (item_skill == 5 && type == Attachment::ATTACH_BOMB)
|
||||
{
|
||||
if (m_kart->getAttachment()->getTicksLeft() > 360) //3 seconds
|
||||
if (m_kart->getAttachment()->getTicksLeft() > stk_config->time2Ticks(3))
|
||||
{
|
||||
m_controls->setFire(true);
|
||||
m_controls->setLookBack(false);
|
||||
|
||||
Reference in New Issue
Block a user