The default value for that defaults to false, shall I still add something?






[Windows Mail App]





From: Mattes D
Sent: ‎Tuesday‎, ‎5‎ ‎November‎ ‎2013 ‎20‎:‎54
To: mc-server/MCServer
Cc: Tiger Wang





In source/Server.cpp:
> @@ -195,8 +195,9 @@ void cServer::PlayerDestroying(const cPlayer * a_Player)
>  
>  bool cServer::InitServer(cIniFile & a_SettingsIni)
>  {
> -	m_Description = a_SettingsIni.GetValue ("Server", "Description", "MCServer! - In C++!").c_str();
> -	m_MaxPlayers  = a_SettingsIni.GetValueI("Server", "MaxPlayers", 100);
> +	m_Description = a_SettingsIni.GetValueSet("Server", "Description", "MCServer - The Minecraft server in C++!").c_str();
> +	m_MaxPlayers  = a_SettingsIni.GetValueSetI("Server", "MaxPlayers", 100);
> +	m_bIsHardcore = a_SettingsIni.GetValueSetB("Server", "HardcoreEnabled");


Isn't this missing the default value as the last param?

—
Reply to this email directly or view it on GitHub.