Change default voting timeout
This commit is contained in:
@@ -257,6 +257,10 @@ void loadServerLobbyFromConfig()
|
||||
if (unsupportedGameMode())
|
||||
Log::fatal("ServerConfig", "Unsupported game mode");
|
||||
|
||||
// TODO Remove when config directory changed from 0.10-git
|
||||
if (m_voting_timeout == 20.0f)
|
||||
m_voting_timeout = 30.0f;
|
||||
|
||||
int frequency_in_config = m_state_frequency;
|
||||
if (frequency_in_config <= 0 ||
|
||||
frequency_in_config > stk_config->getPhysicsFPS())
|
||||
|
||||
@@ -145,7 +145,7 @@ namespace ServerConfig
|
||||
"words here or a file.txt and let STK load it."));
|
||||
|
||||
SERVER_CFG_PREFIX FloatServerConfigParam m_voting_timeout
|
||||
SERVER_CFG_DEFAULT(FloatServerConfigParam(20.0f, "voting-timeout",
|
||||
SERVER_CFG_DEFAULT(FloatServerConfigParam(30.0f, "voting-timeout",
|
||||
"Timeout in seconds for voting tracks in server."));
|
||||
|
||||
SERVER_CFG_PREFIX FloatServerConfigParam m_validation_timeout
|
||||
|
||||
Reference in New Issue
Block a user