Only hover the kart during active race phase or complete live join world

This commit is contained in:
Benau 2019-01-05 00:02:20 +08:00
parent 2950238d2b
commit ca34b64ba4

View File

@ -1414,7 +1414,8 @@ void Kart::update(int ticks)
// Hover the kart above reset position before entering the game
// Add invulnerability depends on kart
if (m_live_join_util != 0 &&
(m_live_join_util > World::getWorld()->getTicksSinceStart() ||
((m_live_join_util > World::getWorld()->getTicksSinceStart() &&
World::getWorld()->isActiveRacePhase()) ||
World::getWorld()->isLiveJoinWorld()))
{
btRigidBody *body = getBody();