Fixed world time differences between client and server.

This commit is contained in:
hiker 2018-03-08 09:47:42 +11:00
parent ae111d3cfb
commit e4ea3291b1

View File

@ -313,6 +313,7 @@ void WorldStatus::updateTime(const float dt)
// In artist debug mode, when without opponents,
// skip the ready/set/go counter faster
if (UserConfigParams::m_artist_debug_mode &&
!NetworkConfig::get()->isNetworking() &&
race_manager->getNumberOfKarts() -
race_manager->getNumSpareTireKarts() == 1 &&
race_manager->getTrackName() != "tutorial")
@ -483,6 +484,7 @@ void WorldStatus::startReadySetGo()
*/
void WorldStatus::setTime(const float time)
{
m_count_up_timer += (time - m_time);
m_time = time;
} // setTime