Remove spectate helper message if finishing the race last

This commit is contained in:
Benau 2019-02-03 13:45:51 +08:00
parent 11dafe470c
commit 2bd2dc19ca

View File

@ -1368,6 +1368,8 @@ void Kart::update(int ticks)
if (cl && m_finished_race && m_controller->isLocalPlayerController() &&
race_manager->getNumLocalPlayers() == 1 &&
race_manager->modeHasLaps() &&
World::getWorld()->isActiveRacePhase() &&
m_network_finish_check_ticks > 0 &&
World::getWorld()->getTicksSinceStart() >
m_network_finish_check_ticks + stk_config->time2Ticks(1.0f) &&
!m_enabled_network_spectator)