Fix: Allow 2.00 sec wait period to be changed.

This commit is contained in:
Charles Lohr
2004-10-26 18:18:53 +00:00
parent 465c98dbab
commit e77abc84ab
3 changed files with 6 additions and 2 deletions
+4
View File
@@ -586,6 +586,9 @@ void PrefsManager::ReadPrefsFromFile( CString sIni )
#if defined (WITHOUT_NETWORKING)
#else
ini.GetValue( "Options", "LastConnectedServer", m_sLastServer );
ini.GetValue( "Options", "ServerWaitSeconds", m_fStartWait );
if ( m_fStartWait == 0.0 )
m_fStartWait = 2;
#endif
FOREACH( IPreference*, *g_pvpSubscribers, p ) (*p)->ReadFrom( ini );
@@ -836,6 +839,7 @@ void PrefsManager::SaveGlobalPrefsToDisk() const
#if defined (WITHOUT_NETWORKING)
#else
ini.SetValue( "Options", "LastConnectedServer", m_sLastServer );
ini.SetValue( "Options", "ServerWaitSeconds", m_fStartWait );
#endif
FOREACH_CONST( IPreference*, *g_pvpSubscribers, p ) (*p)->WriteTo( ini );