Fix wrong formula

Alayan said: +25% and +15s
This commit is contained in:
Benau 2018-06-08 01:15:28 +08:00
parent 304787f106
commit 5b62d03323
2 changed files with 2 additions and 2 deletions

View File

@ -600,7 +600,7 @@ void cmdLineHelp()
" --max-players=n Maximum number of clients (server only).\n"
" --motd Message showing in all lobby of clients, can specify a .txt file.\n"
" --auto-end Automatically end network game after 1st player finished\n"
" for some time (currently his finished time * 1.25 + 15.0). \n"
" for some time (currently his finished time * 0.25 + 15.0). \n"
" --no-validation Allow non validated and unencrypted connection in wan.\n"
" --ranked Server will submit ranking to stk addons server.\n"
" You require permission for that.\n"

View File

@ -456,7 +456,7 @@ void LinearWorld::newLap(unsigned int kart_index)
NetworkConfig::get()->isAutoEnd() &&
m_finish_timeout == std::numeric_limits<float>::max())
{
m_finish_timeout = finish_time * 1.25f + 15.0f;
m_finish_timeout = finish_time * 0.25f + 15.0f;
}
kart->finishedRace(finish_time);
}