move a couple preferences out of PrefsManager

- eventually, this will reduce the gargantuan PrefsManager
 - adding prefs doesn't require modifying PrefsManager.h and recompiling a lot
 - starting with these options because they aren't in ScreenOptionsMaster
This commit is contained in:
Glenn Maynard
2004-12-07 01:47:32 +00:00
parent ba929b8e71
commit a663219b8a
2 changed files with 7 additions and 6 deletions
+3 -1
View File
@@ -12,6 +12,8 @@ StepManiaLanServer::StepManiaLanServer() { }
StepManiaLanServer::~StepManiaLanServer() { }
#else
static Preference<float> g_fStartWait( Options, "ServerWaitSeconds", 2 );
LanPlayer::LanPlayer()
{
score = 0;
@@ -295,7 +297,7 @@ void StepManiaLanServer::CheckReady()
//that will not use a lot of CPU.
//When you try playing the music as soon as it's loaded
//it will not always play ... immediately
usleep ( int( PREFSMAN->m_fStartWait * 1000000.0 ) );
usleep( int( g_fStartWait * 1000000.0 ) );
//The next three loops are seperate because we want to minimize what is done
//during the actual loop that starts the clients. This is in an atempt