Fix a bug that allowed to fire powerups before start, don't penalize anymore if honking before start (#3632)
Signed-off-by: Fouks <42526046+Fouks0@users.noreply.github.com>
This commit is contained in:
parent
88a1dcc724
commit
1a1775e5cc
@ -329,8 +329,7 @@ void PlayerController::update(int ticks)
|
||||
if (World::getWorld()->isStartPhase())
|
||||
{
|
||||
if ((m_controls->getAccel() || m_controls->getBrake()||
|
||||
m_controls->getFire() || m_controls->getNitro()) &&
|
||||
!NetworkConfig::get()->isNetworking())
|
||||
m_controls->getNitro()) && !NetworkConfig::get()->isNetworking())
|
||||
{
|
||||
// Only give penalty time in READY_PHASE.
|
||||
// Penalty time check makes sure it doesn't get rendered on every
|
||||
|
@ -1576,7 +1576,13 @@ void Kart::update(int ticks)
|
||||
}
|
||||
// use() needs to be called even if there currently is no collecteable
|
||||
// since use() can test if something needs to be switched on/off.
|
||||
m_powerup->use() ;
|
||||
if (!World::getWorld()->isStartPhase())
|
||||
m_powerup->use();
|
||||
else
|
||||
{
|
||||
if(!getKartAnimation())
|
||||
beep();
|
||||
}
|
||||
World::getWorld()->onFirePressed(getController());
|
||||
m_fire_clicked = 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user